[llvm] [LV] Fix missing precomptueCosts() in emitInvalidCostRemarks(). (PR #114918)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 13:25:49 PST 2024


================
@@ -1,5 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; RUN: opt < %s -passes=loop-vectorize,dce,instcombine -force-vector-interleave=1 -force-vector-width=4 -prefer-inloop-reductions -S | FileCheck %s
+; Check remark analysis runs successfully.
+; RUN: opt < %s -passes=loop-vectorize,dce,instcombine -force-vector-interleave=1 -force-vector-width=4 -prefer-inloop-reductions -pass-remarks-analysis=loop-vectorize -S
----------------
fhahn wrote:

Might be better to have a separate test case that also checks the output of the remark as well? Also no need to run `dce,instcombine`.

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


More information about the llvm-commits mailing list