[llvm] [X86] Make ISD::ROTL/ROTR vector rotates legal on XOP+AVX512 targets (PR #184587)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 03:45:02 PST 2026


================
@@ -2337,6 +2337,12 @@ bool TargetLowering::SimplifyDemandedBits(
       if (SimplifyDemandedBits(Op1, DemandedAmtBits, DemandedElts, Known2, TLO,
                                Depth + 1))
         return true;
+
+      // rot*(x, 0) --> x
----------------
phoebewang wrote:

Isn't line 2318 cover this case in the next iteration?

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


More information about the llvm-commits mailing list