Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp89 auto matchFunnelShift = [](Value *V, Value *&ShVal0, Value *&ShVal1, in foldGuardedFunnelShift()
97 m_Shl(m_Value(ShVal0), m_Value(ShAmt)), in foldGuardedFunnelShift()
107 m_OneUse(m_c_Or(m_Shl(m_Value(ShVal0), m_Sub(m_SpecificInt(Width), in foldGuardedFunnelShift()
125 Value *ShVal0, *ShVal1, *ShAmt; in foldGuardedFunnelShift() local
126 Intrinsic::ID IID = matchFunnelShift(P0, ShVal0, ShVal1, ShAmt); in foldGuardedFunnelShift()
128 (IID == Intrinsic::fshl && ShVal0 != P1) || in foldGuardedFunnelShift()
130 IID = matchFunnelShift(P1, ShVal0, ShVal1, ShAmt); in foldGuardedFunnelShift()
132 (IID == Intrinsic::fshl && ShVal0 != P0) || in foldGuardedFunnelShift()
149 if (!DT.dominates(ShVal0, TermI) || !DT.dominates(ShVal1, TermI)) in foldGuardedFunnelShift()
163 if (ShVal0 == ShVal1) in foldGuardedFunnelShift()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp557 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in narrowFunnelShift() local
558 if (!match(Or0, m_OneUse(m_LogicalShift(m_Value(ShVal0), m_Value(ShAmt0)))) || in narrowFunnelShift()
566 std::swap(ShVal0, ShVal1); in narrowFunnelShift()
582 if (ShVal0 == ShVal1 || MaskedValueIsZero(L, HiBitMask)) in narrowFunnelShift()
588 if (ShVal0 != ShVal1) in narrowFunnelShift()
629 X = Y = Builder.CreateTrunc(ShVal0, DestTy); in narrowFunnelShift()
630 if (ShVal0 != ShVal1) in narrowFunnelShift()
DInstCombineAndOrXor.cpp2124 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in matchFunnelShift() local
2125 if (!match(Or0, m_OneUse(m_LogicalShift(m_Value(ShVal0), m_Value(ShAmt0)))) || in matchFunnelShift()
2133 std::swap(ShVal0, ShVal1); in matchFunnelShift()
2169 if (ShVal0 != ShVal1) in matchFunnelShift()
2210 return CallInst::Create(F, {ShVal0, ShVal1, ShAmt}); in matchFunnelShift()