Home
last modified time | relevance | path

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

/src/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp78 auto matchFunnelShift = [](Value *V, Value *&ShVal0, Value *&ShVal1, in foldGuardedFunnelShift()
85 m_Shl(m_Value(ShVal0), m_Value(ShAmt)), in foldGuardedFunnelShift()
94 m_OneUse(m_c_Or(m_Shl(m_Value(ShVal0), m_Sub(m_SpecificInt(Width), in foldGuardedFunnelShift()
111 Value *ShVal0, *ShVal1, *ShAmt; in foldGuardedFunnelShift() local
112 Intrinsic::ID IID = matchFunnelShift(P0, ShVal0, ShVal1, ShAmt); in foldGuardedFunnelShift()
114 (IID == Intrinsic::fshl && ShVal0 != P1) || in foldGuardedFunnelShift()
116 IID = matchFunnelShift(P1, ShVal0, ShVal1, ShAmt); in foldGuardedFunnelShift()
118 (IID == Intrinsic::fshl && ShVal0 != P0) || in foldGuardedFunnelShift()
135 if (!DT.dominates(ShVal0, TermI) || !DT.dominates(ShVal1, TermI)) in foldGuardedFunnelShift()
149 if (ShVal0 == ShVal1) in foldGuardedFunnelShift()
[all …]
/src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp460 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in narrowFunnelShift() local
461 if (!match(Or0, m_OneUse(m_LogicalShift(m_Value(ShVal0), m_Value(ShAmt0)))) || in narrowFunnelShift()
469 std::swap(ShVal0, ShVal1); in narrowFunnelShift()
485 if (ShVal0 == ShVal1 || MaskedValueIsZero(L, HiBitMask)) in narrowFunnelShift()
491 if (ShVal0 != ShVal1) in narrowFunnelShift()
534 X = Y = Builder.CreateTrunc(ShVal0, DestTy); in narrowFunnelShift()
535 if (ShVal0 != ShVal1) in narrowFunnelShift()
H A DInstCombineAndOrXor.cpp2867 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in convertOrOfShiftsToFunnelShift() local
2869 m_OneUse(m_LogicalShift(m_Value(ShVal0), m_Value(ShAmt0)))) || in convertOrOfShiftsToFunnelShift()
2878 std::swap(ShVal0, ShVal1); in convertOrOfShiftsToFunnelShift()
2916 if (ShVal0 != ShVal1) in convertOrOfShiftsToFunnelShift()
2959 FShiftArgs = {ShVal0, ShVal1, ShAmt}; in convertOrOfShiftsToFunnelShift()