Lines Matching defs:ICmp
701 ICmpInst *ICmp = dyn_cast<ICmpInst>(BI->getCondition());
703 if (!ICmp)
707 return ICmp->getOperand(0) == V || ICmp->getOperand(1) == V;
1262 createReplacement(ICmpInst *ICmp, const Loop *L, BasicBlock *ExitingBB,
1265 ICmpInst::Predicate Pred = ICmp->getPredicate();
1266 Value *LHS = ICmp->getOperand(0);
1267 Value *RHS = ICmp->getOperand(1);
1360 if (auto *ICmp = dyn_cast<ICmpInst>(Curr))
1361 LeafConditions.push_back(ICmp);
1373 for (auto *ICmp : LeafConditions) {
1374 auto EL = SE->computeExitLimitFromCond(L, ICmp, Inverted,
1386 ICmpsFailingOnLastIter.insert(ICmp);
1393 // - There is another ICmp that would fail on last iter, so this one doesn't
1442 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition());
1443 if (!ICmp || !ICmp->hasOneUse())
1446 auto *LHS = ICmp->getOperand(0);
1447 auto *RHS = ICmp->getOperand(1);
1460 if (!match(LHS, m_ZExt(m_Value(LHSOp))) || !ICmp->isSigned())
1472 ICmp->setPredicate(ICmp->getUnsignedPredicate());
1488 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition());
1489 if (!ICmp || !ICmp->hasOneUse() || !ICmp->isUnsigned())
1493 auto *LHS = ICmp->getOperand(0);
1494 auto *RHS = ICmp->getOperand(1);
1527 assert(ICmp->isUnsigned() && "must have proven unsigned already");
1531 ICmp->setOperand(Swapped ? 1 : 0, LHSOp);
1532 ICmp->setOperand(Swapped ? 0 : 1, NewRHS);
1534 ICmp->setSameSign(false);