[llvm] [LV] Update LoopVectorizationPlanner::emitInvalidCostRemarks to handle reduction plans (PR #165913)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 31 15:44:24 PDT 2025


================
@@ -0,0 +1,159 @@
+; RUN: opt < %s -passes=loop-vectorize -S -pass-remarks=loop-vectorize 2>%t
+; RUN: cat %t | FileCheck --check-prefix=CHECK-REMARKS %s
+
+; CHECK-REMARKS: remark: repro.f90:9:5: vectorized loop (vectorization width: vscale x 2, interleaved count: 2)
+
+; ModuleID = 'FIRModule'
+source_filename = "FIRModule"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
+target triple = "aarch64-unknown-linux-gnu"
----------------
fhahn wrote:

If the test requires a target-triple, it needs to be moved into the architecture specific sub-dirs, otherwise it will fail when the target is not enabled.

You may be able to reproduce without target-triple by passing something like `-force-vector-width=4`

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


More information about the llvm-commits mailing list