Lines Matching refs:CmpI
3839 static Value *lookThroughCast(CmpInst *CmpI, Value *V1, Value *V2, in lookThroughCast() argument
3860 if (isa<ZExtInst>(CI) && CmpI->isUnsigned()) in lookThroughCast()
3863 if (isa<SExtInst>(CI) && CmpI->isSigned()) in lookThroughCast()
3867 CastedTo = ConstantExpr::getIntegerCast(C, CI->getSrcTy(), CmpI->isSigned()); in lookThroughCast()
3904 CmpInst *CmpI = dyn_cast<CmpInst>(SI->getCondition()); in matchSelectPattern() local
3905 if (!CmpI) return {SPF_UNKNOWN, SPNB_NA, false}; in matchSelectPattern()
3907 CmpInst::Predicate Pred = CmpI->getPredicate(); in matchSelectPattern()
3908 Value *CmpLHS = CmpI->getOperand(0); in matchSelectPattern()
3909 Value *CmpRHS = CmpI->getOperand(1); in matchSelectPattern()
3913 if (isa<FPMathOperator>(CmpI)) in matchSelectPattern()
3914 FMF = CmpI->getFastMathFlags(); in matchSelectPattern()
3917 if (CmpI->isEquality()) in matchSelectPattern()
3922 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) in matchSelectPattern()
3926 if (Value *C = lookThroughCast(CmpI, FalseVal, TrueVal, CastOp)) in matchSelectPattern()