Lines Matching refs:Op0C
1490 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitAnd() local
1491 Value *Op0COp = Op0C->getOperand(0); in visitAnd()
1495 if (Op0C->getOpcode() == Op1C->getOpcode() && // same cast kind ? in visitAnd()
1501 if (ShouldOptimizeCast(Op0C->getOpcode(), Op0COp, I.getType()) && in visitAnd()
1504 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType()); in visitAnd()
1512 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
1519 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
1528 if (isa<BitCastInst>(Op0C) && SrcTy->isFloatingPointTy() && in visitAnd()
2546 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitOr() local
2548 if (Op1C && Op0C->getOpcode() == Op1C->getOpcode()) {// same cast kind ? in visitOr()
2549 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitOr()
2552 Value *Op0COp = Op0C->getOperand(0), *Op1COp = Op1C->getOperand(0); in visitOr()
2557 ShouldOptimizeCast(Op0C->getOpcode(), Op0COp, I.getType()) && in visitOr()
2560 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType()); in visitOr()
2568 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitOr()
2575 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitOr()
2690 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitXor() local
2691 if (CmpInst *CI = dyn_cast<CmpInst>(Op0C->getOperand(0))) { in visitXor()
2692 if (CI->hasOneUse() && Op0C->hasOneUse()) { in visitXor()
2693 Instruction::CastOps Opcode = Op0C->getOpcode(); in visitXor()
2696 Op0C->getDestTy()))) { in visitXor()
2698 return CastInst::Create(Opcode, CI, Op0C->getType()); in visitXor()
2912 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitXor() local
2914 if (Op0C->getOpcode() == Op1C->getOpcode()) { // same cast kind? in visitXor()
2915 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitXor()
2918 ShouldOptimizeCast(Op0C->getOpcode(), Op0C->getOperand(0), in visitXor()
2922 Value *NewOp = Builder->CreateXor(Op0C->getOperand(0), in visitXor()
2924 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType()); in visitXor()