Lines Matching refs:ICI

263   bool tryToSimplifyUncondBranchWithICmpInIt(ICmpInst *ICI,
555 ICmpInst *ICI; in matchInstruction() local
557 if (!((ICI = dyn_cast<ICmpInst>(I)) && in matchInstruction()
568 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE)) { in matchInstruction()
609 if (match(ICI->getOperand(0), in matchInstruction()
632 if (match(ICI->getOperand(0), in matchInstruction()
649 if (!setValueOnce(ICI->getOperand(0))) in matchInstruction()
654 return ICI->getOperand(0); in matchInstruction()
659 ConstantRange::makeExactICmpRegion(ICI->getPredicate(), C->getValue()); in matchInstruction()
774 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison() local
775 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL)) in isValueEqualityComparison()
776 CV = ICI->getOperand(0); in isValueEqualityComparison()
803 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases() local
804 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE); in GetValueEqualityComparisonCases()
806 GetConstantInt(ICI->getOperand(1), DL), Succ)); in GetValueEqualityComparisonCases()
807 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()
4408 ICmpInst *ICI, IRBuilder<> &Builder) { in tryToSimplifyUncondBranchWithICmpInIt() argument
4409 BasicBlock *BB = ICI->getParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4413 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse()) in tryToSimplifyUncondBranchWithICmpInIt()
4416 Value *V = ICI->getOperand(0); in tryToSimplifyUncondBranchWithICmpInIt()
4417 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1)); in tryToSimplifyUncondBranchWithICmpInIt()
4436 ICI->setOperand(0, VVal); in tryToSimplifyUncondBranchWithICmpInIt()
4438 if (Value *V = simplifyInstruction(ICI, {DL, ICI})) { in tryToSimplifyUncondBranchWithICmpInIt()
4439 ICI->replaceAllUsesWith(V); in tryToSimplifyUncondBranchWithICmpInIt()
4440 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4451 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in tryToSimplifyUncondBranchWithICmpInIt()
4456 ICI->replaceAllUsesWith(V); in tryToSimplifyUncondBranchWithICmpInIt()
4457 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
4465 PHINode *PHIUse = dyn_cast<PHINode>(ICI->user_back()); in tryToSimplifyUncondBranchWithICmpInIt()
4475 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in tryToSimplifyUncondBranchWithICmpInIt()
4480 ICI->replaceAllUsesWith(DefaultCst); in tryToSimplifyUncondBranchWithICmpInIt()
4481 ICI->eraseFromParent(); in tryToSimplifyUncondBranchWithICmpInIt()
6782 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) in simplifyUncondBranch() local
6783 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) { in simplifyUncondBranch()
6787 tryToSimplifyUncondBranchWithICmpInIt(ICI, Builder)) in simplifyUncondBranch()