Home
last modified time | relevance | path

Searched refs:Cmp1 (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp65 int64_t Cmp1 = 0; member
133 const auto Cmp1 = MatchInfo.Cmp1; in matchClampI64ToI16() local
135 const auto Diff = std::abs(Cmp2 - Cmp1); in matchClampI64ToI16()
146 return ((Cmp2 >= Cmp1 && Cmp1 >= Min && Cmp2 <= Max) || in matchClampI64ToI16()
147 (Cmp1 >= Cmp2 && Cmp1 <= Max && Cmp2 >= Min)); in matchClampI64ToI16()
152 m_GSMin(m_Reg(Base), m_ICst(MatchInfo.Cmp1)))) { in matchClampI64ToI16()
160 m_GSMax(m_Reg(Base), m_ICst(MatchInfo.Cmp1)))) { in matchClampI64ToI16()
194 auto MinBoundary = std::min(MatchInfo.Cmp1, MatchInfo.Cmp2); in applyClampI64ToI16()
195 auto MaxBoundary = std::max(MatchInfo.Cmp1, MatchInfo.Cmp2); in applyClampI64ToI16()
H A DAMDGPUInstCombineIntrinsic.cpp54 APFloat::cmpResult Cmp1 = Max3.compare(Src1); in fmed3AMDGCN() local
55 assert(Cmp1 != APFloat::cmpUnordered && "nans handled separately"); in fmed3AMDGCN()
56 if (Cmp1 == APFloat::cmpEqual) in fmed3AMDGCN()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp215 if (const CmpInst *Cmp1 = dyn_cast<CmpInst>(&V1)) in isInverse() local
217 if (Cmp1->getPredicate() == Cmp2->getInversePredicate() && in isInverse()
218 Cmp1->getOperand(0) == Cmp2->getOperand(0) && in isInverse()
219 Cmp1->getOperand(1) == Cmp2->getOperand(1)) in isInverse()
222 if (Cmp1->getPredicate() == in isInverse()
224 Cmp1->getOperand(0) == Cmp2->getOperand(1) && in isInverse()
225 Cmp1->getOperand(1) == Cmp2->getOperand(0)) in isInverse()
H A DLoopUtils.cpp1929 Value *Cmp1 = ChkBuilder.CreateICmpULT(B.Start, A.End, "bound1"); in addRuntimeChecks() local
1930 Value *IsConflict = ChkBuilder.CreateAnd(Cmp0, Cmp1, "found.conflict"); in addRuntimeChecks()
H A DSimplifyCFG.cpp6116 Value *Cmp1 = Builder.CreateICmpEQ(Condition, CaseValues[0], in foldSwitchToSelect() local
6120 Value *Cmp = Builder.CreateOr(Cmp1, Cmp2, "switch.selectcmp"); in foldSwitchToSelect()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRShiftExpand.cpp98 Value *Cmp1 = Builder.CreateICmpEQ(ShiftAmount, Int8Zero); in expand() local
99 Builder.CreateCondBr(Cmp1, EndBB, LoopBB); in expand()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp653 Value *InstCombinerImpl::simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1, in simplifyRangeCheck() argument
669 ICmpInst::Predicate Pred1 = (Inverted ? Cmp1->getInversePredicate() : in simplifyRangeCheck()
670 Cmp1->getPredicate()); in simplifyRangeCheck()
674 if (Cmp1->getOperand(0) == Input) { in simplifyRangeCheck()
676 RangeEnd = Cmp1->getOperand(1); in simplifyRangeCheck()
677 } else if (Cmp1->getOperand(1) == Input) { in simplifyRangeCheck()
679 RangeEnd = Cmp1->getOperand(0); in simplifyRangeCheck()
694 KnownBits Known = computeKnownBits(RangeEnd, /*Depth=*/0, Cmp1); in simplifyRangeCheck()
910 static Value *foldIsPowerOf2OrZero(ICmpInst *Cmp0, ICmpInst *Cmp1, bool IsAnd, in foldIsPowerOf2OrZero() argument
916 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt()))) in foldIsPowerOf2OrZero()
[all …]
H A DInstCombineSelect.cpp977 Value *Cmp1 = Cmp->getOperand(1); in canonicalizeSaturatedAdd() local
983 match(FVal, m_AllOnes()) && match(Cmp1, m_APInt(CmpC)) && *CmpC == ~*C) { in canonicalizeSaturatedAdd()
1001 std::swap(Cmp0, Cmp1); in canonicalizeSaturatedAdd()
1011 match(FVal, m_c_Add(m_Specific(X), m_Value(Y))) && Y == Cmp1) { in canonicalizeSaturatedAdd()
1019 Y = Cmp1; in canonicalizeSaturatedAdd()
1030 match(Cmp0, m_c_Add(m_Specific(Cmp1), m_Value(Y))) && in canonicalizeSaturatedAdd()
1031 match(FVal, m_c_Add(m_Specific(Cmp1), m_Specific(Y)))) { in canonicalizeSaturatedAdd()
1034 return Builder.CreateBinaryIntrinsic(Intrinsic::uadd_sat, Cmp1, Y); in canonicalizeSaturatedAdd()
1464 Value *Cmp1; in canonicalizeClampLike() local
1468 if (!match(Sel1, m_Select(m_Value(Cmp1), m_Value(ReplacementLow), in canonicalizeClampLike()
[all …]
H A DInstCombineInternal.h113 Value *simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1, bool Inverted);
417 Value *foldEqOfParts(ICmpInst *Cmp0, ICmpInst *Cmp1, bool IsAnd);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp101 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IndexTy, 0)); in getBoundsCheckCond() local
102 Or = IRB.CreateOr(Cmp1, Or); in getBoundsCheckCond()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp1227 auto Cmp1 = MIB.buildInstr(getFCmpOpcode(CmpInst::FCMP_OLT, Size), in selectFPCompare() local
1229 if (!Cmp1.constrainAllUses(TII, TRI, RBI)) in selectFPCompare()
1238 MIB.buildInstr(RISCV::OR, {TmpReg}, {Cmp1.getReg(0), Cmp2.getReg(0)}); in selectFPCompare()
1245 auto Cmp1 = MIB.buildInstr(getFCmpOpcode(CmpInst::FCMP_OEQ, Size), in selectFPCompare() local
1247 if (!Cmp1.constrainAllUses(TII, TRI, RBI)) in selectFPCompare()
1256 MIB.buildInstr(RISCV::AND, {TmpReg}, {Cmp1.getReg(0), Cmp2.getReg(0)}); in selectFPCompare()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp6991 GICmp *Cmp1 = getOpcodeDef<GICmp>(LHS, MRI); in tryFoldAndOrOrICmpsUsingRanges() local
6992 if (!Cmp1) in tryFoldAndOrOrICmpsUsingRanges()
7001 if (!MRI.hasOneNonDBGUse(Cmp1->getReg(0)) || in tryFoldAndOrOrICmpsUsingRanges()
7008 getIConstantVRegValWithLookThrough(Cmp1->getRHSReg(), MRI); in tryFoldAndOrOrICmpsUsingRanges()
7019 Register R1 = Cmp1->getLHSReg(); in tryFoldAndOrOrICmpsUsingRanges()
7021 CmpInst::Predicate Pred1 = Cmp1->getCond(); in tryFoldAndOrOrICmpsUsingRanges()
7023 LLT CmpTy = MRI.getType(Cmp1->getReg(0)); in tryFoldAndOrOrICmpsUsingRanges()
7149 GFCmp *Cmp1 = getOpcodeDef<GFCmp>(LHS, MRI); in tryFoldLogicOfFCmps() local
7150 if (!Cmp1) in tryFoldLogicOfFCmps()
7158 LLT CmpTy = MRI.getType(Cmp1->getReg(0)); in tryFoldLogicOfFCmps()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp720 Value *Cmp1 = IRB.CreateAnd(ThrewCmp, ThrewValueCmp, "cmp1"); in wrapTestSetjmp() local
721 IRB.CreateCondBr(Cmp1, ThenBB1, ElseBB1); in wrapTestSetjmp()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1666 static Value *simplifyAndOrOfICmpsWithConstants(ICmpInst *Cmp0, ICmpInst *Cmp1, in simplifyAndOrOfICmpsWithConstants() argument
1669 if (Cmp0->getOperand(0) != Cmp1->getOperand(0)) in simplifyAndOrOfICmpsWithConstants()
1674 !match(Cmp1->getOperand(1), m_APInt(C1))) in simplifyAndOrOfICmpsWithConstants()
1678 auto Range1 = ConstantRange::makeExactICmpRegion(Cmp1->getPredicate(), *C1); in simplifyAndOrOfICmpsWithConstants()
1696 return IsAnd ? Cmp1 : Cmp0; in simplifyAndOrOfICmpsWithConstants()
1698 return IsAnd ? Cmp0 : Cmp1; in simplifyAndOrOfICmpsWithConstants()
1751 static Value *simplifyAndOrOfICmpsWithCtpop(ICmpInst *Cmp0, ICmpInst *Cmp1, in simplifyAndOrOfICmpsWithCtpop() argument
1758 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt())) || C->isZero()) in simplifyAndOrOfICmpsWithCtpop()
1763 return Cmp1; in simplifyAndOrOfICmpsWithCtpop()
1766 return Cmp1; in simplifyAndOrOfICmpsWithCtpop()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp1533 Register Cmp1 = I.getOperand(3).getReg(); in selectCmp() local
1535 GR.getSPIRVTypeForVReg(Cmp1)->getOpcode() && in selectCmp()
1541 .addUse(Cmp1) in selectCmp()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp18776 SDValue Cmp1 = CSel1.getOperand(3); in performANDORCSELCombine() local
18779 if (!Cmp0->hasOneUse() || !Cmp1->hasOneUse()) in performANDORCSELCombine()
18781 if (Cmp1.getOpcode() != AArch64ISD::SUBS && in performANDORCSELCombine()
18783 std::swap(Cmp0, Cmp1); in performANDORCSELCombine()
18787 if (Cmp1.getOpcode() != AArch64ISD::SUBS) in performANDORCSELCombine()
18806 auto *Op1 = dyn_cast<ConstantSDNode>(Cmp1.getOperand(1)); in performANDORCSELCombine()
18814 CCmp = DAG.getNode(AArch64ISD::CCMN, DL, MVT_CC, Cmp1.getOperand(0), AbsOp1, in performANDORCSELCombine()
18817 CCmp = DAG.getNode(AArch64ISD::CCMP, DL, MVT_CC, Cmp1.getOperand(0), in performANDORCSELCombine()
18818 Cmp1.getOperand(1), NZCVOp, Condition, Cmp0); in performANDORCSELCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp23332 SDValue Cmp0, Cmp1; in LowerVSETCC() local
23337 Cmp1 = DAG.getNode( in LowerVSETCC()
23341 Cmp1.getValue(1)); in LowerVSETCC()
23345 Cmp1 = DAG.getNode( in LowerVSETCC()
23348 Cmp = DAG.getNode(CombineOpc, dl, VT, Cmp0, Cmp1); in LowerVSETCC()
50583 SDValue Cmp1 = DAG.getNode(X86ISD::SUB, DL, X86SubVTs, Z, One); in combineAddOrSubToADCOrSBB() local
50586 Cmp1.getValue(1)); in combineAddOrSubToADCOrSBB()
50593 SDValue Cmp1 = DAG.getNode(X86ISD::SUB, DL, X86SubVTs, Z, One); in combineAddOrSubToADCOrSBB() local
50602 DAG.getConstant(-1ULL, DL, VT), Cmp1.getValue(1)); in combineAddOrSubToADCOrSBB()
50607 DAG.getConstant(0, DL, VT), Cmp1.getValue(1)); in combineAddOrSubToADCOrSBB()