Lines Matching refs:Or
130 if (I && (I->getOpcode() == Instruction::Or || in XorOpnd()
141 isOr = (I->getOpcode() == Instruction::Or); in XorOpnd()
971 static bool isLoadCombineCandidate(Instruction *Or) { in isLoadCombineCandidate() argument
986 if (!Enqueue(Or)) in isLoadCombineCandidate()
994 case Instruction::Or: in isLoadCombineCandidate()
1021 static bool shouldConvertOrWithNoCommonBitsToAdd(Instruction *Or) { in shouldConvertOrWithNoCommonBitsToAdd() argument
1033 if (any_of(Or->operands(), isInteresting)) in shouldConvertOrWithNoCommonBitsToAdd()
1036 Value *VB = Or->user_back(); in shouldConvertOrWithNoCommonBitsToAdd()
1037 if (Or->hasOneUse() && isInteresting(VB)) in shouldConvertOrWithNoCommonBitsToAdd()
1045 static BinaryOperator *convertOrWithNoCommonBitsToAdd(Instruction *Or) { in convertOrWithNoCommonBitsToAdd() argument
1048 CreateAdd(Or->getOperand(0), Or->getOperand(1), "", Or, Or); in convertOrWithNoCommonBitsToAdd()
1051 New->takeName(Or); in convertOrWithNoCommonBitsToAdd()
1054 Or->replaceAllUsesWith(New); in convertOrWithNoCommonBitsToAdd()
1055 New->setDebugLoc(Or->getDebugLoc()); in convertOrWithNoCommonBitsToAdd()
1288 if (Opcode == Instruction::Or) // ...|X|~X = -1 in OptimizeAndOrXor()
1297 if (Opcode == Instruction::And || Opcode == Instruction::Or) { in OptimizeAndOrXor()
2016 case Instruction::Or: in OptimizeExpression()
2269 if (I->getOpcode() == Instruction::Or && in OptimizeInst()