Lines Matching refs:CI2
1032 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1035 if (CI2->isZero()) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1038 if (CI2->isZero()) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1041 if (CI2->isZero()) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1042 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1047 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1049 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
1050 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
1054 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1055 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
1056 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
1057 return UndefValue::get(CI2->getType()); // X % 0 == undef in ConstantFoldBinaryInstruction()
1060 if (CI2->isZero()) return C2; // X & 0 == 0 in ConstantFoldBinaryInstruction()
1061 if (CI2->isMinusOne()) in ConstantFoldBinaryInstruction()
1067 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1071 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits) in ConstantFoldBinaryInstruction()
1086 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1091 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
1092 return Constant::getNullValue(CI2->getType()); in ConstantFoldBinaryInstruction()
1098 if (CI2->isZero()) return C1; // X | 0 == X in ConstantFoldBinaryInstruction()
1099 if (CI2->isMinusOne()) in ConstantFoldBinaryInstruction()
1103 if (CI2->isZero()) return C1; // X ^ 0 == X in ConstantFoldBinaryInstruction()
1111 assert(CI2->isOne()); in ConstantFoldBinaryInstruction()
1133 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1135 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction()
1146 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1149 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1154 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1157 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()