[llvm] [SLP] Check the Operands of Copyable elements as well in getBestOperand() (PR #182443)

Ryan Buchner via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 23:04:06 PST 2026


================
@@ -0,0 +1,335 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=slp-vectorizer -slp-threshold=-200 -mtriple=x86_64-unknown-linux -mcpu=core-avx2 -S | FileCheck %s
+
+define i32 @test_commutative() {
----------------
bababuck wrote:

This test hits the `commutative` case, but no reordering occurs. Still working to improve.

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


More information about the llvm-commits mailing list