Lines Matching refs:ICI

271   bool tryToSimplifyUncondBranchWithICmpInIt(ICmpInst *ICI,
565 ICmpInst *ICI; in matchInstruction() local
567 if (!((ICI = dyn_cast<ICmpInst>(I)) && in matchInstruction()
578 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE)) { in matchInstruction()
619 if (match(ICI->getOperand(0), in matchInstruction()
642 if (match(ICI->getOperand(0), in matchInstruction()
659 if (!setValueOnce(ICI->getOperand(0))) in matchInstruction()
664 return ICI->getOperand(0); in matchInstruction()
669 ConstantRange::makeExactICmpRegion(ICI->getPredicate(), C->getValue()); in matchInstruction()
784 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison() local
785 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL)) in isValueEqualityComparison()
786 CV = ICI->getOperand(0); in isValueEqualityComparison()
813 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases() local
814 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE); in GetValueEqualityComparisonCases()
816 GetConstantInt(ICI->getOperand(1), DL), Succ)); in GetValueEqualityComparisonCases()
817 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ); in GetValueEqualityComparisonCases()
1079 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetBranchWeights() local
1080 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in GetBranchWeights()
4769 ICmpInst *ICI, IRBuilder<> &Builder) { in tryToSimplifyUncondBranchWithICmpInIt() argument
4770 BasicBlock *BB = ICI->getParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4774 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse()) in tryToSimplifyUncondBranchWithICmpInIt()
4777 Value *V = ICI->getOperand(0); in tryToSimplifyUncondBranchWithICmpInIt()
4778 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1)); in tryToSimplifyUncondBranchWithICmpInIt()
4797 ICI->setOperand(0, VVal); in tryToSimplifyUncondBranchWithICmpInIt()
4799 if (Value *V = simplifyInstruction(ICI, {DL, ICI})) { in tryToSimplifyUncondBranchWithICmpInIt()
4800 ICI->replaceAllUsesWith(V); in tryToSimplifyUncondBranchWithICmpInIt()
4801 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4812 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in tryToSimplifyUncondBranchWithICmpInIt()
4817 ICI->replaceAllUsesWith(V); in tryToSimplifyUncondBranchWithICmpInIt()
4818 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4826 PHINode *PHIUse = dyn_cast<PHINode>(ICI->user_back()); in tryToSimplifyUncondBranchWithICmpInIt()
4836 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in tryToSimplifyUncondBranchWithICmpInIt()
4841 ICI->replaceAllUsesWith(DefaultCst); in tryToSimplifyUncondBranchWithICmpInIt()
4842 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
7328 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) in simplifyUncondBranch() local
7329 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) { in simplifyUncondBranch()
7333 tryToSimplifyUncondBranchWithICmpInIt(ICI, Builder)) in simplifyUncondBranch()