reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1103 if (CI2->isZero()) return C1; // X + 0 == X 1106 if (CI2->isZero()) return C1; // X - 0 == X 1109 if (CI2->isZero()) return C2; // X * 0 == 0 1110 if (CI2->isOne()) 1115 if (CI2->isOne()) 1117 if (CI2->isZero()) 1118 return UndefValue::get(CI2->getType()); // X / 0 == undef 1122 if (CI2->isOne()) 1123 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 1124 if (CI2->isZero()) 1125 return UndefValue::get(CI2->getType()); // X % 0 == undef 1128 if (CI2->isZero()) return C2; // X & 0 == 0 1129 if (CI2->isMinusOne()) 1135 unsigned DstWidth = CI2->getType()->getBitWidth(); 1139 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits) 1173 unsigned DstWidth = CI2->getType()->getBitWidth(); 1178 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) 1178 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) 1179 return Constant::getNullValue(CI2->getType()); 1185 if (CI2->isZero()) return C1; // X | 0 == X 1186 if (CI2->isMinusOne()) 1190 if (CI2->isZero()) return C1; // X ^ 0 == X 1198 assert(CI2->isOne());