Lines Matching refs:Const
128 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1)); in convertFCmp() local
131 if (!Const) in convertFCmp()
140 if (Const->isZero()) { in convertFCmp()
143 } else if (Const->isInfinity()) { in convertFCmp()
145 WhichConst = Const->isNegative() ? 2 : 1; in convertFCmp()
146 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
152 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
238 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); in convertICmp() local
241 if (!Const) in convertICmp()
251 if (Pred == CmpInst::ICMP_SLT && Const->isZero()) { in convertICmp()
254 } else if (Pred == CmpInst::ICMP_SGT && Const->isMinusOne()) { in convertICmp()
268 if (!Const->isZero()) in convertICmp()