Lines Matching refs:CI2

1003   if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) {  in ConstantFoldBinaryInstruction()  local
1006 if (CI2->isZero()) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1009 if (CI2->isZero()) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1012 if (CI2->isZero()) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1013 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1018 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1020 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
1021 return PoisonValue::get(CI2->getType()); // X / 0 == poison in ConstantFoldBinaryInstruction()
1025 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1026 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
1027 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
1028 return PoisonValue::get(CI2->getType()); // X % 0 == poison in ConstantFoldBinaryInstruction()
1031 if (CI2->isZero()) return C2; // X & 0 == 0 in ConstantFoldBinaryInstruction()
1032 if (CI2->isMinusOne()) in ConstantFoldBinaryInstruction()
1038 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1042 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits) in ConstantFoldBinaryInstruction()
1077 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1082 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
1083 return Constant::getNullValue(CI2->getType()); in ConstantFoldBinaryInstruction()
1089 if (CI2->isZero()) return C1; // X | 0 == X in ConstantFoldBinaryInstruction()
1090 if (CI2->isMinusOne()) in ConstantFoldBinaryInstruction()
1094 if (CI2->isZero()) return C1; // X ^ 0 == X in ConstantFoldBinaryInstruction()
1102 assert(CI2->isOne()); in ConstantFoldBinaryInstruction()
1124 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1126 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction()
1137 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1140 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1145 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1148 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()