Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:ICI

31   ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition());
32 if (!ICI) return SPF_UNKNOWN;
34 ICmpInst::Predicate Pred = ICI->getPredicate();
35 Value *CmpLHS = ICI->getOperand(0);
36 Value *CmpRHS = ICI->getOperand(1);
452 static Value *foldSelectCttzCtlz(ICmpInst *ICI, Value *TrueVal, Value *FalseVal,
454 ICmpInst::Predicate Pred = ICI->getPredicate();
455 Value *CmpLHS = ICI->getOperand(0);
456 Value *CmpRHS = ICI->getOperand(1);
459 ICI->isEquality() || !match(CmpRHS, m_Zero()))
500 ICmpInst *ICI) {
502 ICmpInst::Predicate Pred = ICI->getPredicate();
503 Value *CmpLHS = ICI->getOperand(0);
504 Value *CmpRHS = ICI->getOperand(1);
509 // can be adjusted to fit the min/max idiom. We may move or edit ICI
511 if (ICI->hasOneUse())
563 } else if (ICI->isUnsigned()) {
587 ICI->setPredicate(Pred);
588 ICI->setOperand(0, CmpLHS);
589 ICI->setOperand(1, CmpRHS);
593 // Move ICI instruction right before the select instruction. Otherwise
594 // the sext/zext value may be defined after the ICI instruction uses it.
595 ICI->moveBefore(&SI);
724 if (Value *V = foldSelectCttzCtlz(ICI, TrueVal, FalseVal, Builder))
1070 if (ICmpInst *ICI = dyn_cast<ICmpInst>(CondVal))
1071 if (Instruction *Result = visitSelectInstWithICmp(SI, ICI))