Lines Matching defs:ICmp
704 ICmpInst *ICmp = dyn_cast<ICmpInst>(BI->getCondition());
706 if (!ICmp)
710 return ICmp->getOperand(0) == V || ICmp->getOperand(1) == V;
1265 createReplacement(ICmpInst *ICmp, const Loop *L, BasicBlock *ExitingBB,
1268 ICmpInst::Predicate Pred = ICmp->getPredicate();
1269 Value *LHS = ICmp->getOperand(0);
1270 Value *RHS = ICmp->getOperand(1);
1363 if (auto *ICmp = dyn_cast<ICmpInst>(Curr))
1364 LeafConditions.push_back(ICmp);
1376 for (auto *ICmp : LeafConditions) {
1377 auto EL = SE->computeExitLimitFromCond(L, ICmp, Inverted,
1389 ICmpsFailingOnLastIter.insert(ICmp);
1396 // - There is another ICmp that would fail on last iter, so this one doesn't
1445 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition());
1446 if (!ICmp || !ICmp->hasOneUse())
1449 auto *LHS = ICmp->getOperand(0);
1450 auto *RHS = ICmp->getOperand(1);
1463 if (!match(LHS, m_ZExt(m_Value(LHSOp))) || !ICmp->isSigned())
1475 ICmp->setPredicate(ICmp->getUnsignedPredicate());
1491 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition());
1492 if (!ICmp || !ICmp->hasOneUse() || !ICmp->isUnsigned())
1496 auto *LHS = ICmp->getOperand(0);
1497 auto *RHS = ICmp->getOperand(1);
1530 assert(ICmp->isUnsigned() && "must have proven unsigned already");
1534 ICmp->setOperand(Swapped ? 1 : 0, LHSOp);
1535 ICmp->setOperand(Swapped ? 0 : 1, NewRHS);