Lines Matching defs:ICI
286 bool tryToSimplifyUncondBranchWithICmpInIt(ICmpInst *ICI,
576 ICmpInst *ICI;
578 if (!((ICI = dyn_cast<ICmpInst>(I)) &&
589 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE)) {
630 if (match(ICI->getOperand(0),
653 if (match(ICI->getOperand(0),
670 if (!setValueOnce(ICI->getOperand(0)))
675 return ICI->getOperand(0);
680 ConstantRange::makeExactICmpRegion(ICI->getPredicate(), C->getValue());
795 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) {
796 if (ICI->isEquality() && getConstantInt(ICI->getOperand(1), DL))
797 CV = ICI->getOperand(0);
824 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
825 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE);
827 getConstantInt(ICI->getOperand(1), DL), Succ));
828 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ);
1090 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
1091 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
5024 ICmpInst *ICI, IRBuilder<> &Builder) {
5025 BasicBlock *BB = ICI->getParent();
5029 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse())
5032 Value *V = ICI->getOperand(0);
5033 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1));
5052 ICI->setOperand(0, VVal);
5054 if (Value *V = simplifyInstruction(ICI, {DL, ICI})) {
5055 ICI->replaceAllUsesWith(V);
5056 ICI->eraseFromParent();
5063 // comparing exists in one of the other edges, then we can constant fold ICI
5067 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
5072 ICI->replaceAllUsesWith(V);
5073 ICI->eraseFromParent();
5081 PHINode *PHIUse = dyn_cast<PHINode>(ICI->user_back());
5091 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
5094 // Replace ICI (which is used by the PHI for the default value) with true or
5096 ICI->replaceAllUsesWith(DefaultCst);
5097 ICI->eraseFromParent();
7894 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I))
7895 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) {
7899 tryToSimplifyUncondBranchWithICmpInIt(ICI, Builder))