Home
last modified time | relevance | path

Searched refs:ShVal1 (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()
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()
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
462 !match(Or1, m_OneUse(m_LogicalShift(m_Value(ShVal1), m_Value(ShAmt1)))) || in narrowFunnelShift()
469 std::swap(ShVal0, ShVal1); in narrowFunnelShift()
485 if (ShVal0 == ShVal1 || MaskedValueIsZero(L, HiBitMask)) in narrowFunnelShift()
491 if (ShVal0 != ShVal1) in narrowFunnelShift()
523 if (!MaskedValueIsZero(ShVal1, HiBitMask, 0, &Trunc)) in narrowFunnelShift()
535 if (ShVal0 != ShVal1) in narrowFunnelShift()
536 Y = Builder.CreateTrunc(ShVal1, DestTy); in narrowFunnelShift()
H A DInstCombineAndOrXor.cpp2867 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in convertOrOfShiftsToFunnelShift() local
2871 m_OneUse(m_LogicalShift(m_Value(ShVal1), m_Value(ShAmt1)))) || in convertOrOfShiftsToFunnelShift()
2878 std::swap(ShVal0, ShVal1); in convertOrOfShiftsToFunnelShift()
2916 if (ShVal0 != ShVal1) in convertOrOfShiftsToFunnelShift()
2959 FShiftArgs = {ShVal0, ShVal1, ShAmt}; in convertOrOfShiftsToFunnelShift()