Lines Matching refs:CI2
1019 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1022 if (CI2->equalsInt(0)) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1025 if (CI2->equalsInt(0)) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1028 if (CI2->equalsInt(0)) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1029 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1034 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1036 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1037 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
1041 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1042 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
1043 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1044 return UndefValue::get(CI2->getType()); // X % 0 == undef in ConstantFoldBinaryInstruction()
1047 if (CI2->isZero()) return C2; // X & 0 == 0 in ConstantFoldBinaryInstruction()
1048 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1054 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1058 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits) in ConstantFoldBinaryInstruction()
1073 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1078 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
1079 return Constant::getNullValue(CI2->getType()); in ConstantFoldBinaryInstruction()
1085 if (CI2->equalsInt(0)) return C1; // X | 0 == X in ConstantFoldBinaryInstruction()
1086 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1090 if (CI2->equalsInt(0)) return C1; // X ^ 0 == X in ConstantFoldBinaryInstruction()
1098 assert(CI2->equalsInt(1)); in ConstantFoldBinaryInstruction()
1120 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1122 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction()
1133 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1136 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1141 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1144 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()