[llvm] [X86] Lower vector 8-bit `rotl(x, 1)` to `(x + x) - (x < 0)` pattern (PR #206221)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 03:53:29 PDT 2026


================
@@ -32405,6 +32405,16 @@ static SDValue LowerRotate(SDValue Op, const X86Subtarget &Subtarget,
     return DAG.getNode(ISD::AVGCEILU, DL, VT, R, Neg);
   }
 
+  // rotl(x,1) -> psubb(x+x, x<0)
----------------
VachanVY wrote:

done

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


More information about the llvm-commits mailing list