[llvm] [LV] Account for vp_merge in out of loop EVL reductions in legacy cost model (PR #115903)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 11:33:32 PST 2024


================
@@ -0,0 +1,34 @@
+; RUN: opt -passes=loop-vectorize -debug-only=loop-vectorize \
+; RUN: -force-tail-folding-style=data-with-evl \
+; RUN: -prefer-predicate-over-epilogue=predicate-dont-vectorize \
+; RUN: -mtriple=riscv64 -mattr=+v -S < %s 2>&1 | FileCheck %s \
+; RUN: --check-prefix=EVL
+
+; RUN: opt -passes=loop-vectorize -debug-only=loop-vectorize \
+; RUN: -prefer-predicate-over-epilogue=predicate-dont-vectorize \
+; RUN: -mtriple=riscv64 -mattr=+v -S < %s 2>&1 | FileCheck %s \
+; RUN: --check-prefix=NO-EVL
----------------
fhahn wrote:

Just testing the EVL cost here, no need to have this second run line?

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


More information about the llvm-commits mailing list