Lines Matching refs:Const
124 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1)); in convertFCmp() local
127 if (!Const) in convertFCmp()
136 if (Const->isZero()) { in convertFCmp()
139 } else if (Const->isInfinity()) { in convertFCmp()
141 WhichConst = Const->isNegative() ? 2 : 1; in convertFCmp()
142 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
148 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
234 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); in convertICmp() local
237 if (!Const) in convertICmp()
247 if (Pred == CmpInst::ICMP_SLT && Const->isZero()) { in convertICmp()
250 } else if (Pred == CmpInst::ICMP_SGT && Const->isMinusOne()) { in convertICmp()
264 if (!Const->isZero()) in convertICmp()