Lines Matching refs:CI2

1005   if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) {  in ConstantFoldBinaryInstruction()  local
1008 if (CI2->equalsInt(0)) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1011 if (CI2->equalsInt(0)) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1014 if (CI2->equalsInt(0)) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1015 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1020 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1022 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1023 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
1027 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1028 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
1029 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1030 return UndefValue::get(CI2->getType()); // X % 0 == undef in ConstantFoldBinaryInstruction()
1033 if (CI2->isZero()) return C2; // X & 0 == 0 in ConstantFoldBinaryInstruction()
1034 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1040 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1044 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits) in ConstantFoldBinaryInstruction()
1059 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1064 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
1065 return Constant::getNullValue(CI2->getType()); in ConstantFoldBinaryInstruction()
1071 if (CI2->equalsInt(0)) return C1; // X | 0 == X in ConstantFoldBinaryInstruction()
1072 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1076 if (CI2->equalsInt(0)) return C1; // X ^ 0 == X in ConstantFoldBinaryInstruction()
1084 assert(CI2->equalsInt(1)); in ConstantFoldBinaryInstruction()
1107 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1109 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction()
1120 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1123 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1128 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1131 assert(!CI2->isNullValue() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()