Home
last modified time | relevance | path

Searched refs:ShVal1 (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()
98 m_LShr(m_Value(ShVal1), in foldGuardedFunnelShift()
109 m_LShr(m_Value(ShVal1), m_Value(ShAmt)))))) { in foldGuardedFunnelShift()
125 Value *ShVal0, *ShVal1, *ShAmt; in foldGuardedFunnelShift() local
126 Intrinsic::ID IID = matchFunnelShift(P0, ShVal0, ShVal1, ShAmt); in foldGuardedFunnelShift()
129 (IID == Intrinsic::fshr && ShVal1 != P1)) { in foldGuardedFunnelShift()
130 IID = matchFunnelShift(P1, ShVal0, ShVal1, ShAmt); in foldGuardedFunnelShift()
133 (IID == Intrinsic::fshr && ShVal1 != 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
559 !match(Or1, m_OneUse(m_LogicalShift(m_Value(ShVal1), m_Value(ShAmt1)))) || in narrowFunnelShift()
566 std::swap(ShVal0, ShVal1); in narrowFunnelShift()
582 if (ShVal0 == ShVal1 || MaskedValueIsZero(L, HiBitMask)) in narrowFunnelShift()
588 if (ShVal0 != ShVal1) in narrowFunnelShift()
620 if (!MaskedValueIsZero(ShVal1, HiBitMask, 0, &Trunc)) in narrowFunnelShift()
630 if (ShVal0 != ShVal1) in narrowFunnelShift()
631 Y = Builder.CreateTrunc(ShVal1, DestTy); in narrowFunnelShift()
DInstCombineAndOrXor.cpp2124 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in matchFunnelShift() local
2126 !match(Or1, m_OneUse(m_LogicalShift(m_Value(ShVal1), m_Value(ShAmt1)))) || 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()