[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 04:00:35 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)
+ if (EltSizeInBits == 8 && IsCstSplat &&
----------------
VachanVY wrote:
Done.
https://github.com/llvm/llvm-project/pull/206221
More information about the llvm-commits
mailing list