Lines Matching full:ici
437 ICmpInst *ICI;
439 if (!((ICI = dyn_cast<ICmpInst>(I)) &&
450 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE)) {
492 if (match(ICI->getOperand(0),
515 if (match(ICI->getOperand(0),
532 if (!setValueOnce(ICI->getOperand(0)))
537 return ICI->getOperand(0);
542 ICI->getPredicate(), C->getValue());
655 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) {
656 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL))
657 CV = ICI->getOperand(0);
685 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
686 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE);
688 GetConstantInt(ICI->getOperand(1), DL), Succ));
689 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ);
922 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
923 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
3142 ICmpInst *ICI, IRBuilder<> &Builder, const DataLayout &DL,
3145 BasicBlock *BB = ICI->getParent();
3149 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse())
3152 Value *V = ICI->getOperand(0);
3153 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1));
3172 ICI->setOperand(0, VVal);
3174 if (Value *V = SimplifyInstruction(ICI, DL)) {
3175 ICI->replaceAllUsesWith(V);
3176 ICI->eraseFromParent();
3183 // comparing exists in one of the other edges, then we can constant fold ICI
3187 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
3192 ICI->replaceAllUsesWith(V);
3193 ICI->eraseFromParent();
3201 PHINode *PHIUse = dyn_cast<PHINode>(ICI->user_back());
3211 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
3214 // Replace ICI (which is used by the PHI for the default value) with true or
3216 ICI->replaceAllUsesWith(DefaultCst);
3217 ICI->eraseFromParent();
5223 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I))
5224 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) {
5228 TryToSimplifyUncondBranchWithICmpInIt(ICI, Builder, DL, TTI,