Lines Matching refs:ICI

357   if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) {
359 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ:ICmpInst::ICMP_NE)) {
368 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue());
461 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition()))
462 if ((ICI->getPredicate() == ICmpInst::ICMP_EQ ||
463 ICI->getPredicate() == ICmpInst::ICMP_NE) &&
464 GetConstantInt(ICI->getOperand(1), TD))
465 CV = ICI->getOperand(0);
488 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
489 Cases.push_back(std::make_pair(GetConstantInt(ICI->getOperand(1), TD),
490 BI->getSuccessor(ICI->getPredicate() ==
492 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ);
1941 static bool TryToSimplifyUncondBranchWithICmpInIt(ICmpInst *ICI,
1944 BasicBlock *BB = ICI->getParent();
1948 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse()) return false;
1950 Value *V = ICI->getOperand(0);
1951 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1));
1969 ICI->setOperand(0, VVal);
1971 if (Value *V = SimplifyInstruction(ICI, TD)) {
1972 ICI->replaceAllUsesWith(V);
1973 ICI->eraseFromParent();
1980 // comparing exists in one of the other edges, then we can constant fold ICI
1984 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
1989 ICI->replaceAllUsesWith(V);
1990 ICI->eraseFromParent();
1998 PHINode *PHIUse = dyn_cast<PHINode>(ICI->use_back());
2008 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
2011 // Replace ICI (which is used by the PHI for the default value) with true or
2013 ICI->replaceAllUsesWith(DefaultCst);
2014 ICI->eraseFromParent();
2675 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I))
2676 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) {
2680 && TryToSimplifyUncondBranchWithICmpInIt(ICI, TD, Builder))