Lines Matching refs:Op0
144 BinaryOperator *Op0 = dyn_cast<BinaryOperator>(I.getOperand(0)); in SimplifyAssociativeOrCommutative() local
149 if (Op0 && Op0->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative()
150 Value *A = Op0->getOperand(0); in SimplifyAssociativeOrCommutative()
151 Value *B = Op0->getOperand(1); in SimplifyAssociativeOrCommutative()
191 if (Op0 && Op0->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative()
192 Value *A = Op0->getOperand(0); in SimplifyAssociativeOrCommutative()
193 Value *B = Op0->getOperand(1); in SimplifyAssociativeOrCommutative()
232 if (Op0 && Op1 && in SimplifyAssociativeOrCommutative()
233 Op0->getOpcode() == Opcode && Op1->getOpcode() == Opcode && in SimplifyAssociativeOrCommutative()
234 isa<Constant>(Op0->getOperand(1)) && in SimplifyAssociativeOrCommutative()
236 Op0->hasOneUse() && Op1->hasOneUse()) { in SimplifyAssociativeOrCommutative()
237 Value *A = Op0->getOperand(0); in SimplifyAssociativeOrCommutative()
238 Constant *C1 = cast<Constant>(Op0->getOperand(1)); in SimplifyAssociativeOrCommutative()
319 BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS); in SimplifyUsingDistributiveLaws() local
324 if (Op0 && Op1 && Op0->getOpcode() == Op1->getOpcode()) { in SimplifyUsingDistributiveLaws()
327 Value *A = Op0->getOperand(0), *B = Op0->getOperand(1); in SimplifyUsingDistributiveLaws()
329 Instruction::BinaryOps InnerOpcode = Op0->getOpcode(); // op' in SimplifyUsingDistributiveLaws()
346 if (!V && Op0->hasOneUse() && Op1->hasOneUse()) in SimplifyUsingDistributiveLaws()
368 if (!V && Op0->hasOneUse() && Op1->hasOneUse()) in SimplifyUsingDistributiveLaws()
369 V = Builder->CreateBinOp(TopLevelOpcode, A, C, Op0->getName()); in SimplifyUsingDistributiveLaws()
380 if (Op0 && RightDistributesOverLeft(Op0->getOpcode(), TopLevelOpcode)) { in SimplifyUsingDistributiveLaws()
383 Value *A = Op0->getOperand(0), *B = Op0->getOperand(1), *C = RHS; in SimplifyUsingDistributiveLaws()
384 Instruction::BinaryOps InnerOpcode = Op0->getOpcode(); // op' in SimplifyUsingDistributiveLaws()
394 return Op0; in SimplifyUsingDistributiveLaws()
486 Value *Op0 = SO, *Op1 = ConstOperand; in FoldOperationIntoSelectOperand() local
488 std::swap(Op0, Op1); in FoldOperationIntoSelectOperand()
491 return IC->Builder->CreateBinOp(BO->getOpcode(), Op0, Op1, in FoldOperationIntoSelectOperand()
494 return IC->Builder->CreateICmp(CI->getPredicate(), Op0, Op1, in FoldOperationIntoSelectOperand()
497 return IC->Builder->CreateICmp(CI->getPredicate(), Op0, Op1, in FoldOperationIntoSelectOperand()