[llvm] [X86] Don't treat vectors with elements wider than 64 bits as immediate-shiftable (PR #228840)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 4 00:30:54 PDT 2026


================
@@ -640,3 +640,34 @@ define i32 @add_adc_multi_use(i32 %0, i32 %1, i32 %2) nounwind {
   %10 = add i32 %9, %6
   ret i32 %10
 }
+
+; Don't fold add(x,x) -> X86ISD::VSHLI(x,1) for elements wider than 64 bits.
+; https://github.com/llvm/llvm-project/issues/228829
----------------
RKSimon wrote:

```suggestion
; PR228829
```

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


More information about the llvm-commits mailing list