[llvm] [LV] Fix emission of debug message in legality check (PR #101924)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 01:51:24 PDT 2024
================
@@ -0,0 +1,36 @@
+; This test asserts that we don't emit both
+; successful and unsuccessful message about vectorization.
+
+; RUN: opt -passes=loop-vectorize -debug -disable-output -pass-remarks-missed=loop-vectorize %s 2>&1 | FileCheck %s
+; CHECK-NOT: LV: We can vectorize this loop
+; CHECK: LV: Not vectorizing: Cannot prove legality
+
+target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
+target triple = "aarch64-unknown-linux-gnu"
+
+ at a = dso_local global [32000 x i32] zeroinitializer, align 4
+ at b = dso_local global [32000 x i32] zeroinitializer, align 4
+
+define dso_local void @foo() local_unnamed_addr {
----------------
nikic wrote:
Unnecessary dso_local / local_unnamed_addr.
https://github.com/llvm/llvm-project/pull/101924
More information about the llvm-commits
mailing list