Lines Matching defs:Const
126 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1));
129 if (!Const)
136 // Check if Const is one of our recognized consts.
138 if (Const->isZero()) {
141 } else if (Const->isInfinity()) {
143 WhichConst = Const->isNegative() ? 2 : 1;
144 } else if (Const->isExactlyValue(Smallest)) {
150 } else if (Const->isExactlyValue(NegSmallest)) {
236 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1));
239 if (!Const)
249 if (Pred == CmpInst::ICMP_SLT && Const->isZero()) {
252 } else if (Pred == CmpInst::ICMP_SGT && Const->isMinusOne()) {
266 if (!Const->isZero())