[llvm] [DAG][X86] Bitfield insertion can combine into SHL + SHRD (PR #220182)

Pratyay Pande via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 23:25:48 PDT 2026


================
@@ -8844,6 +8844,44 @@ static SDValue visitORCommutative(SelectionDAG &DAG, SDValue N0, SDValue N1,
   return SDValue();
 }
 
+// Fold an OR with a masked destination and a left-shifted
+// source into a shift + double-precision shift (SHRD):
+static SDValue combineOrOnSHLToFSHR(SDNode *N, SDLoc &DL, SelectionDAG &DAG) {
----------------
pratyaypande wrote:

Done

https://github.com/llvm/llvm-project/pull/220182


More information about the llvm-commits mailing list