Lines Matching refs:CI2
999 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1002 if (CI2->equalsInt(0)) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1005 if (CI2->equalsInt(0)) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1008 if (CI2->equalsInt(0)) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1009 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1014 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1016 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1017 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
1021 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1022 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
1023 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1024 return UndefValue::get(CI2->getType()); // X % 0 == undef in ConstantFoldBinaryInstruction()
1027 if (CI2->isZero()) return C2; // X & 0 == 0 in ConstantFoldBinaryInstruction()
1028 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1034 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1038 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits) in ConstantFoldBinaryInstruction()
1053 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1058 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
1059 return Constant::getNullValue(CI2->getType()); in ConstantFoldBinaryInstruction()
1065 if (CI2->equalsInt(0)) return C1; // X | 0 == X in ConstantFoldBinaryInstruction()
1066 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1070 if (CI2->equalsInt(0)) return C1; // X ^ 0 == X in ConstantFoldBinaryInstruction()
1078 assert(CI2->equalsInt(1)); in ConstantFoldBinaryInstruction()
1101 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1103 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction()
1114 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1117 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1122 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1125 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()