[llvm] [SLP] Fix incorrect operand order in interchangeable instruction. (PR #139225)

Han-Kuan Chen via llvm-commits llvm-commits at lists.llvm.org
Sun May 11 20:09:16 PDT 2025


================
@@ -0,0 +1,113 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt -passes=slp-vectorizer -S %s | FileCheck %s
+
+target triple = "x86_64-unknown-linux-gnu"
+
+ at global = global i32 0
+
+define i64 @main() #0 {
----------------
HanKuanChen wrote:

I think we can use `llvm/test/Transforms/SLPVectorizer/X86/reorder_diamond_match.ll` as test directly. They are the same issue.

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


More information about the llvm-commits mailing list