[llvm] [LV][AArch64] Prefer Fixed over Scalable if cost-model is equal (Neoverse V2) (PR #95819)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 06:41:43 PDT 2024


================
@@ -0,0 +1,196 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -S < %s -passes=loop-vectorize | FileCheck %s
----------------
david-arm wrote:

I wonder if this way of testing is potentially fragile due to future cost model changes. It might end up choosing the values you expect anyway regardless of your new feature. I've not tried this out, but can you use `-force-target-instruction-cost=1` to ensure you're testing the new code path?

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


More information about the llvm-commits mailing list