Lines Matching defs:CmpI
8606 static Value *lookThroughCast(CmpInst *CmpI, Value *V1, Value *V2,
8625 const DataLayout &DL = CmpI->getDataLayout();
8629 if (CmpI->isUnsigned())
8633 if (CmpI->isSigned())
8638 if (match(CmpI->getOperand(1), m_Constant(CmpConst)) &&
8663 unsigned ExtOp = CmpI->isSigned() ? Instruction::SExt : Instruction::ZExt;
8710 CmpInst *CmpI = dyn_cast<CmpInst>(SI->getCondition());
8711 if (!CmpI) return {SPF_UNKNOWN, SPNB_NA, false};
8716 return llvm::matchDecomposedSelectPattern(CmpI, TrueVal, FalseVal, LHS, RHS,
8721 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
8723 CmpInst::Predicate Pred = CmpI->getPredicate();
8724 Value *CmpLHS = CmpI->getOperand(0);
8725 Value *CmpRHS = CmpI->getOperand(1);
8727 if (isa<FPMathOperator>(CmpI))
8728 FMF = CmpI->getFastMathFlags();
8731 if (CmpI->isEquality())
8736 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) {
8745 if (Value *C = lookThroughCast(CmpI, FalseVal, TrueVal, CastOp)) {