Lines Matching defs:ICI

271   bool tryToSimplifyUncondBranchWithICmpInIt(ICmpInst *ICI,
565 ICmpInst *ICI;
567 if (!((ICI = dyn_cast<ICmpInst>(I)) &&
578 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE)) {
619 if (match(ICI->getOperand(0),
642 if (match(ICI->getOperand(0),
659 if (!setValueOnce(ICI->getOperand(0)))
664 return ICI->getOperand(0);
669 ConstantRange::makeExactICmpRegion(ICI->getPredicate(), C->getValue());
784 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) {
785 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL))
786 CV = ICI->getOperand(0);
813 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
814 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE);
816 GetConstantInt(ICI->getOperand(1), DL), Succ));
817 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ);
1079 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
1080 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
4769 ICmpInst *ICI, IRBuilder<> &Builder) {
4770 BasicBlock *BB = ICI->getParent();
4774 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse())
4777 Value *V = ICI->getOperand(0);
4778 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1));
4797 ICI->setOperand(0, VVal);
4799 if (Value *V = simplifyInstruction(ICI, {DL, ICI})) {
4800 ICI->replaceAllUsesWith(V);
4801 ICI->eraseFromParent();
4808 // comparing exists in one of the other edges, then we can constant fold ICI
4812 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
4817 ICI->replaceAllUsesWith(V);
4818 ICI->eraseFromParent();
4826 PHINode *PHIUse = dyn_cast<PHINode>(ICI->user_back());
4836 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
4839 // Replace ICI (which is used by the PHI for the default value) with true or
4841 ICI->replaceAllUsesWith(DefaultCst);
4842 ICI->eraseFromParent();
7328 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I))
7329 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) {
7333 tryToSimplifyUncondBranchWithICmpInIt(ICI, Builder))