Lines Matching refs:Or
130 if (I && (I->getOpcode() == Instruction::Or || in XorOpnd()
141 isOr = (I->getOpcode() == Instruction::Or); in XorOpnd()
886 static bool isLoadCombineCandidate(Instruction *Or) { in isLoadCombineCandidate() argument
901 if (!Enqueue(Or)) in isLoadCombineCandidate()
909 case Instruction::Or: in isLoadCombineCandidate()
936 static bool shouldConvertOrWithNoCommonBitsToAdd(Instruction *Or) { in shouldConvertOrWithNoCommonBitsToAdd() argument
948 if (any_of(Or->operands(), isInteresting)) in shouldConvertOrWithNoCommonBitsToAdd()
951 Value *VB = Or->user_back(); in shouldConvertOrWithNoCommonBitsToAdd()
952 if (Or->hasOneUse() && isInteresting(VB)) in shouldConvertOrWithNoCommonBitsToAdd()
960 static BinaryOperator *convertOrWithNoCommonBitsToAdd(Instruction *Or) { in convertOrWithNoCommonBitsToAdd() argument
962 BinaryOperator *New = CreateAdd(Or->getOperand(0), Or->getOperand(1), "", in convertOrWithNoCommonBitsToAdd()
963 Or->getIterator(), Or); in convertOrWithNoCommonBitsToAdd()
966 New->takeName(Or); in convertOrWithNoCommonBitsToAdd()
969 Or->replaceAllUsesWith(New); in convertOrWithNoCommonBitsToAdd()
970 New->setDebugLoc(Or->getDebugLoc()); in convertOrWithNoCommonBitsToAdd()
1204 if (Opcode == Instruction::Or) // ...|X|~X = -1 in OptimizeAndOrXor()
1213 if (Opcode == Instruction::And || Opcode == Instruction::Or) { in OptimizeAndOrXor()
1933 case Instruction::Or: in OptimizeExpression()
2186 if (I->getOpcode() == Instruction::Or && in OptimizeInst()