Home | History | Annotate | Download | only in Utils

Lines Matching refs:ICI

429   if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) {
431 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ:ICmpInst::ICMP_NE)) {
440 ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue());
531 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition()))
532 if ((ICI->getPredicate() == ICmpInst::ICMP_EQ ||
533 ICI->getPredicate() == ICmpInst::ICMP_NE) &&
534 GetConstantInt(ICI->getOperand(1), TD))
535 CV = ICI->getOperand(0);
559 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
560 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE);
561 Cases.push_back(ValueEqualityComparisonCase(GetConstantInt(ICI->getOperand(1),
564 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ);
799 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
800 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
2557 ICmpInst *ICI, IRBuilder<> &Builder, const TargetTransformInfo &TTI,
2559 BasicBlock *BB = ICI->getParent();
2563 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse()) return false;
2565 Value *V = ICI->getOperand(0);
2566 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1));
2584 ICI->setOperand(0, VVal);
2586 if (Value *V = SimplifyInstruction(ICI, TD)) {
2587 ICI->replaceAllUsesWith(V);
2588 ICI->eraseFromParent();
2595 // comparing exists in one of the other edges, then we can constant fold ICI
2599 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
2604 ICI->replaceAllUsesWith(V);
2605 ICI->eraseFromParent();
2613 PHINode *PHIUse = dyn_cast<PHINode>(ICI->use_back());
2623 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
2626 // Replace ICI (which is used by the PHI for the default value) with true or
2628 ICI->replaceAllUsesWith(DefaultCst);
2629 ICI->eraseFromParent();
3827 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I))
3828 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) {
3832 TryToSimplifyUncondBranchWithICmpInIt(ICI, Builder, TTI, TD))