Lines Matching refs:ICI
370 static Value *foldSelectCttzCtlz(ICmpInst *ICI, Value *TrueVal, Value *FalseVal, in foldSelectCttzCtlz() argument
372 ICmpInst::Predicate Pred = ICI->getPredicate(); in foldSelectCttzCtlz()
373 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz()
374 Value *CmpRHS = ICI->getOperand(1); in foldSelectCttzCtlz()
377 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
416 ICmpInst *ICI) { in visitSelectInstWithICmp() argument
418 ICmpInst::Predicate Pred = ICI->getPredicate(); in visitSelectInstWithICmp()
419 Value *CmpLHS = ICI->getOperand(0); in visitSelectInstWithICmp()
420 Value *CmpRHS = ICI->getOperand(1); in visitSelectInstWithICmp()
427 if (ICI->hasOneUse()) in visitSelectInstWithICmp()
471 } else if (ICI->isUnsigned()) { in visitSelectInstWithICmp()
495 ICI->setPredicate(Pred); in visitSelectInstWithICmp()
496 ICI->setOperand(0, CmpLHS); in visitSelectInstWithICmp()
497 ICI->setOperand(1, CmpRHS); in visitSelectInstWithICmp()
503 ICI->moveBefore(&SI); in visitSelectInstWithICmp()
606 if (Value *V = foldSelectCttzCtlz(ICI, TrueVal, FalseVal, Builder)) in visitSelectInstWithICmp()
1084 if (ICmpInst *ICI = dyn_cast<ICmpInst>(CondVal)) in visitSelectInst() local
1085 if (Instruction *Result = visitSelectInstWithICmp(SI, ICI)) in visitSelectInst()