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