Lines Matching refs:CI2
1035 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) in ConstantFoldBinaryInstruction() local
1036 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1069 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1072 if (CI2->equalsInt(0)) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1075 if (CI2->equalsInt(0)) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1078 if (CI2->equalsInt(0)) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1079 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1084 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1086 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1087 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
1091 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1092 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
1093 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1094 return UndefValue::get(CI2->getType()); // X % 0 == undef in ConstantFoldBinaryInstruction()
1097 if (CI2->isZero()) return C2; // X & 0 == 0 in ConstantFoldBinaryInstruction()
1098 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1104 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1108 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits) in ConstantFoldBinaryInstruction()
1123 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1128 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
1129 return Constant::getNullValue(CI2->getType()); in ConstantFoldBinaryInstruction()
1135 if (CI2->equalsInt(0)) return C1; // X | 0 == X in ConstantFoldBinaryInstruction()
1136 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1140 if (CI2->equalsInt(0)) return C1; // X ^ 0 == X in ConstantFoldBinaryInstruction()
1148 assert(CI2->equalsInt(1)); in ConstantFoldBinaryInstruction()
1171 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1174 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction()
1185 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1188 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1193 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1196 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()