Lines Matching refs:CI2
1007 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1010 if (CI2->isZero()) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1013 if (CI2->isZero()) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1016 if (CI2->isZero()) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1017 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1022 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1024 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
1025 return PoisonValue::get(CI2->getType()); // X / 0 == poison in ConstantFoldBinaryInstruction()
1029 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1030 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
1031 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
1032 return PoisonValue::get(CI2->getType()); // X % 0 == poison in ConstantFoldBinaryInstruction()
1035 if (CI2->isZero()) return C2; // X & 0 == 0 in ConstantFoldBinaryInstruction()
1036 if (CI2->isMinusOne()) in ConstantFoldBinaryInstruction()
1042 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1046 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits) in ConstantFoldBinaryInstruction()
1081 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1086 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
1087 return Constant::getNullValue(CI2->getType()); in ConstantFoldBinaryInstruction()
1093 if (CI2->isZero()) return C1; // X | 0 == X in ConstantFoldBinaryInstruction()
1094 if (CI2->isMinusOne()) in ConstantFoldBinaryInstruction()
1098 if (CI2->isZero()) return C1; // X ^ 0 == X in ConstantFoldBinaryInstruction()
1106 assert(CI2->isOne()); in ConstantFoldBinaryInstruction()
1128 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1130 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction()
1141 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1144 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1149 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1152 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()