Home
last modified time | relevance | path

Searched refs:ShVal1 (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp78 auto matchFunnelShift = [](Value *V, Value *&ShVal0, Value *&ShVal1, in foldGuardedFunnelShift()
86 m_LShr(m_Value(ShVal1), in foldGuardedFunnelShift()
96 m_LShr(m_Value(ShVal1), m_Deferred(ShAmt)))))) { in foldGuardedFunnelShift()
111 Value *ShVal0, *ShVal1, *ShAmt; in foldGuardedFunnelShift() local
112 Intrinsic::ID IID = matchFunnelShift(P0, ShVal0, ShVal1, ShAmt); in foldGuardedFunnelShift()
115 (IID == Intrinsic::fshr && ShVal1 != P1)) { in foldGuardedFunnelShift()
116 IID = matchFunnelShift(P1, ShVal0, ShVal1, ShAmt); in foldGuardedFunnelShift()
119 (IID == Intrinsic::fshr && ShVal1 != P0)) in foldGuardedFunnelShift()
135 if (!DT.dominates(ShVal0, TermI) || !DT.dominates(ShVal1, TermI)) in foldGuardedFunnelShift()
146 if (ShVal0 == ShVal1) in foldGuardedFunnelShift()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp535 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in narrowFunnelShift() local
537 !match(Or1, m_OneUse(m_LogicalShift(m_Value(ShVal1), m_Value(ShAmt1)))) || in narrowFunnelShift()
544 std::swap(ShVal0, ShVal1); in narrowFunnelShift()
560 if (ShVal0 == ShVal1 || MaskedValueIsZero(L, HiBitMask)) in narrowFunnelShift()
566 if (ShVal0 != ShVal1) in narrowFunnelShift()
598 if (!MaskedValueIsZero(ShVal1, HiBitMask, &Trunc)) in narrowFunnelShift()
610 if (ShVal0 != ShVal1) in narrowFunnelShift()
611 Y = Builder.CreateTrunc(ShVal1, DestTy); in narrowFunnelShift()
H A DInstCombineAndOrXor.cpp2914 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in convertOrOfShiftsToFunnelShift() local
2918 m_OneUse(m_LogicalShift(m_Value(ShVal1), m_Value(ShAmt1)))) || in convertOrOfShiftsToFunnelShift()
2925 std::swap(ShVal0, ShVal1); in convertOrOfShiftsToFunnelShift()
2963 if (ShVal0 != ShVal1) in convertOrOfShiftsToFunnelShift()
3006 FShiftArgs = {ShVal0, ShVal1, ShAmt}; in convertOrOfShiftsToFunnelShift()