Lines Matching refs:Const
132 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1));
135 if (!Const)
142 // Check if Const is one of our recognized consts.
144 if (Const->isZero()) {
147 } else if (Const->isInfinity()) {
149 WhichConst = Const->isNegative() ? 2 : 1;
150 } else if (Const->isExactlyValue(Smallest)) {
156 } else if (Const->isExactlyValue(NegSmallest)) {
242 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1));
245 if (!Const)
255 if (Pred == CmpInst::ICMP_SLT && Const->isZero()) {
258 } else if (Pred == CmpInst::ICMP_SGT && Const->isMinusOne()) {
272 if (!Const->isZero())