Home | History | Annotate | Download | only in Utils

Lines Matching refs:ICI

384 ICI;
386 if (!((ICI = dyn_cast<ICmpInst>(I)) &&
397 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ:ICmpInst::ICMP_NE)) {
398 if (match(ICI->getOperand(0),
415 if(!setValueOnce(ICI->getOperand(0)))
420 return ICI->getOperand(0);
425 ICI->getPredicate(), C->getValue());
534 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) {
535 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL))
536 CV = ICI->getOperand(0);
565 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
566 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE);
567 Cases.push_back(ValueEqualityComparisonCase(GetConstantInt(ICI->getOperand(1),
570 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ);
804 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
805 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
2701 ICmpInst *ICI, IRBuilder<> &Builder, const DataLayout &DL,
2704 BasicBlock *BB = ICI->getParent();
2708 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse()) return false;
2710 Value *V = ICI->getOperand(0);
2711 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1));
2729 ICI->setOperand(0, VVal);
2731 if (Value *V = SimplifyInstruction(ICI, DL)) {
2732 ICI->replaceAllUsesWith(V);
2733 ICI->eraseFromParent();
2740 // comparing exists in one of the other edges, then we can constant fold ICI
2744 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
2749 ICI->replaceAllUsesWith(V);
2750 ICI->eraseFromParent();
2758 PHINode *PHIUse = dyn_cast<PHINode>(ICI->user_back());
2768 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
2771 // Replace ICI (which is used by the PHI for the default value) with true or
2773 ICI->replaceAllUsesWith(DefaultCst);
2774 ICI->eraseFromParent();
4442 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I))
4443 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) {
4447 TryToSimplifyUncondBranchWithICmpInIt(ICI, Builder, DL, TTI,