Lines Matching refs:Op1
202 BinaryOperator *Op1 = dyn_cast<BinaryOperator>(I.getOperand(1)); in SimplifyAssociativeOrCommutative() local
235 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative()
237 Value *B = Op1->getOperand(0); in SimplifyAssociativeOrCommutative()
238 Value *C = Op1->getOperand(1); in SimplifyAssociativeOrCommutative()
277 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative()
279 Value *B = Op1->getOperand(0); in SimplifyAssociativeOrCommutative()
280 Value *C = Op1->getOperand(1); in SimplifyAssociativeOrCommutative()
298 if (Op0 && Op1 && in SimplifyAssociativeOrCommutative()
299 Op0->getOpcode() == Opcode && Op1->getOpcode() == Opcode && in SimplifyAssociativeOrCommutative()
301 isa<Constant>(Op1->getOperand(1)) && in SimplifyAssociativeOrCommutative()
302 Op0->hasOneUse() && Op1->hasOneUse()) { in SimplifyAssociativeOrCommutative()
305 Value *B = Op1->getOperand(0); in SimplifyAssociativeOrCommutative()
306 Constant *C2 = cast<Constant>(Op1->getOperand(1)); in SimplifyAssociativeOrCommutative()
313 Flags &= Op1->getFastMathFlags(); in SimplifyAssociativeOrCommutative()
317 New->takeName(Op1); in SimplifyAssociativeOrCommutative()
527 if (BinaryOperator *Op1 = dyn_cast<BinaryOperator>(RHS)) in tryFactorization() local
528 if (isa<OverflowingBinaryOperator>(Op1)) in tryFactorization()
529 HasNSW &= Op1->hasNoSignedWrap(); in tryFactorization()
557 BinaryOperator *Op1 = dyn_cast<BinaryOperator>(RHS); in SimplifyUsingDistributiveLaws() local
563 auto RHSOpcode = getBinOpsForFactorization(TopLevelOpcode, Op1, C, D); in SimplifyUsingDistributiveLaws()
610 if (Op1 && LeftDistributesOverRight(TopLevelOpcode, Op1->getOpcode())) { in SimplifyUsingDistributiveLaws()
613 Value *A = LHS, *B = Op1->getOperand(0), *C = Op1->getOperand(1); in SimplifyUsingDistributiveLaws()
614 Instruction::BinaryOps InnerOpcode = Op1->getOpcode(); // op' in SimplifyUsingDistributiveLaws()
624 return Op1; in SimplifyUsingDistributiveLaws()
715 Value *Op0 = SO, *Op1 = ConstOperand; in FoldOperationIntoSelectOperand() local
717 std::swap(Op0, Op1); in FoldOperationIntoSelectOperand()
720 Value *RI = IC->Builder->CreateBinOp(BO->getOpcode(), Op0, Op1, in FoldOperationIntoSelectOperand()
728 return IC->Builder->CreateICmp(CI->getPredicate(), Op0, Op1, in FoldOperationIntoSelectOperand()
731 return IC->Builder->CreateICmp(CI->getPredicate(), Op0, Op1, in FoldOperationIntoSelectOperand()
772 Value *Op0 = CI->getOperand(0), *Op1 = CI->getOperand(1); in FoldOpIntoSelect() local
773 if ((SI->getOperand(1) == Op0 && SI->getOperand(2) == Op1) || in FoldOpIntoSelect()
774 (SI->getOperand(2) == Op0 && SI->getOperand(1) == Op1)) in FoldOpIntoSelect()
1383 GetElementPtrInst *Op1 = dyn_cast<GetElementPtrInst>(PN->getOperand(0)); in visitGetElementPtrInst() local
1384 if (!Op1) in visitGetElementPtrInst()
1393 if (Op1 == &GEP) in visitGetElementPtrInst()
1400 if (!Op2 || Op1->getNumOperands() != Op2->getNumOperands()) in visitGetElementPtrInst()
1408 Type *CurTy = Op1->getOperand(0)->getType()->getScalarType(); in visitGetElementPtrInst()
1410 for (unsigned J = 0, F = Op1->getNumOperands(); J != F; ++J) { in visitGetElementPtrInst()
1411 if (Op1->getOperand(J)->getType() != Op2->getOperand(J)->getType()) in visitGetElementPtrInst()
1414 if (Op1->getOperand(J) != Op2->getOperand(J)) { in visitGetElementPtrInst()
1440 CurTy = CT->getTypeAtIndex(Op1->getOperand(J)); in visitGetElementPtrInst()
1454 GetElementPtrInst *NewGEP = cast<GetElementPtrInst>(Op1->clone()); in visitGetElementPtrInst()
1468 NewPN = Builder->CreatePHI(Op1->getOperand(DI)->getType(), in visitGetElementPtrInst()