Lines Matching refs:ICI
409 ICmpInst *ICI; in matchInstruction() local
411 if (!((ICI = dyn_cast<ICmpInst>(I)) && in matchInstruction()
422 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ:ICmpInst::ICMP_NE)) { in matchInstruction()
423 if (match(ICI->getOperand(0), in matchInstruction()
440 if(!setValueOnce(ICI->getOperand(0))) in matchInstruction()
445 return ICI->getOperand(0); in matchInstruction()
450 ICI->getPredicate(), C->getValue()); in matchInstruction()
559 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison() local
560 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL)) in isValueEqualityComparison()
561 CV = ICI->getOperand(0); in isValueEqualityComparison()
590 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases() local
591 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE); in GetValueEqualityComparisonCases()
592 Cases.push_back(ValueEqualityComparisonCase(GetConstantInt(ICI->getOperand(1), in GetValueEqualityComparisonCases()
595 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ); in GetValueEqualityComparisonCases()
827 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetBranchWeights() local
828 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in GetBranchWeights()
3027 ICmpInst *ICI, IRBuilder<> &Builder, const DataLayout &DL, in TryToSimplifyUncondBranchWithICmpInIt() argument
3030 BasicBlock *BB = ICI->getParent(); in TryToSimplifyUncondBranchWithICmpInIt()
3034 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse()) return false; in TryToSimplifyUncondBranchWithICmpInIt()
3036 Value *V = ICI->getOperand(0); in TryToSimplifyUncondBranchWithICmpInIt()
3037 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1)); in TryToSimplifyUncondBranchWithICmpInIt()
3055 ICI->setOperand(0, VVal); in TryToSimplifyUncondBranchWithICmpInIt()
3057 if (Value *V = SimplifyInstruction(ICI, DL)) { in TryToSimplifyUncondBranchWithICmpInIt()
3058 ICI->replaceAllUsesWith(V); in TryToSimplifyUncondBranchWithICmpInIt()
3059 ICI->eraseFromParent(); in TryToSimplifyUncondBranchWithICmpInIt()
3070 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in TryToSimplifyUncondBranchWithICmpInIt()
3075 ICI->replaceAllUsesWith(V); in TryToSimplifyUncondBranchWithICmpInIt()
3076 ICI->eraseFromParent(); in TryToSimplifyUncondBranchWithICmpInIt()
3084 PHINode *PHIUse = dyn_cast<PHINode>(ICI->user_back()); in TryToSimplifyUncondBranchWithICmpInIt()
3094 if (ICI->getPredicate() == ICmpInst::ICMP_EQ) in TryToSimplifyUncondBranchWithICmpInIt()
3099 ICI->replaceAllUsesWith(DefaultCst); in TryToSimplifyUncondBranchWithICmpInIt()
3100 ICI->eraseFromParent(); in TryToSimplifyUncondBranchWithICmpInIt()
4883 if (ICmpInst *ICI = dyn_cast<ICmpInst>(I)) in SimplifyUncondBranch() local
4884 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) { in SimplifyUncondBranch()
4888 TryToSimplifyUncondBranchWithICmpInIt(ICI, Builder, DL, TTI, in SimplifyUncondBranch()