[llvm] [DAG][X86] Bitfield insertion can combine into SHL + SHRD (PR #220182)
Pratyay Pande via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 00:19:41 PDT 2026
================
@@ -32285,8 +32285,44 @@ static SDValue LowerFunnelShift(SDValue Op, const X86Subtarget &Subtarget,
return DAG.getZExtOrTrunc(Res, DL, VT);
}
- if (VT == MVT::i8 || ExpandFunnel)
+ // If expanding the funnel shift is required OR the value type is unsupported
+ if (VT == MVT::i8 || ExpandFunnel) {
+ // Proceed if one operand is the result of an ISD::SHL or the node is
+ // MVT::i8
----------------
pratyaypande wrote:
Done. Added a descriptive comment.
https://github.com/llvm/llvm-project/pull/220182
More information about the llvm-commits
mailing list