[llvm] [LV] Scale block costs using BranchFrequencyInfo (PR #71793)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 03:01:08 PST 2024


================
@@ -0,0 +1,113 @@
+; RUN: opt -mtriple=riscv64 -mattr=+v -riscv-v-vector-bits-max=128 -riscv-v-register-bit-width-lmul=1 -passes='require<profile-summary>,loop-vectorize' -debug-only=loop-vectorize -disable-output < %s 2>&1 | FileCheck %s
+
----------------
fhahn wrote:

checking debug output is only possible when built with assertions enabled, please add `REQUIRES: asserts`.

Is it possible to add the test as target independent test?

Would it be possible to also add a test case where the probabilities enable vectorization?

And a test with multiple blocks with different probabilities?

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


More information about the llvm-commits mailing list