[llvm] [FunctionAttrs] Remove declaration check lines (NFC) (PR #194384)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 07:16:49 PDT 2026
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/194384
These are annoying, because they get dropped by UTC. We're not
inferring attributes on declarations anyway.
>From 661d428c100e9d681b50ba3506aab2be83e4f9ae Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov at redhat.com>
Date: Mon, 27 Apr 2026 16:15:20 +0200
Subject: [PATCH] [FunctionAttrs] Remove declaration check lines (NFC)
These are annoying, because they get dropped by UTC. We're not
inferring attributes on declarations anyway.
---
llvm/test/Transforms/FunctionAttrs/nosync.ll | 6 ------
1 file changed, 6 deletions(-)
diff --git a/llvm/test/Transforms/FunctionAttrs/nosync.ll b/llvm/test/Transforms/FunctionAttrs/nosync.ll
index 9ecbc58732c92..fa7bfdfd52bd1 100644
--- a/llvm/test/Transforms/FunctionAttrs/nosync.ll
+++ b/llvm/test/Transforms/FunctionAttrs/nosync.ll
@@ -203,8 +203,6 @@ define i32 @volatile_load(ptr %0) norecurse nounwind uwtable {
ret i32 %2
}
-; CHECK: Function Attrs: noinline nosync nounwind uwtable
-; CHECK-NEXT: declare void @nosync_function()
declare void @nosync_function() noinline nounwind uwtable nosync
define void @call_nosync_function() nounwind uwtable noinline {
@@ -217,8 +215,6 @@ define void @call_nosync_function() nounwind uwtable noinline {
ret void
}
-; CHECK: Function Attrs: noinline nounwind uwtable
-; CHECK-NEXT: declare void @might_sync()
declare void @might_sync() noinline nounwind uwtable
define void @call_might_sync() nounwind uwtable noinline {
@@ -279,8 +275,6 @@ define void @convergent_readnone(){
ret void
}
-; CHECK: Function Attrs: nounwind
-; CHECK-NEXT: declare void @llvm.x86.sse2.clflush(ptr)
declare void @llvm.x86.sse2.clflush(ptr)
@a = common global i32 0, align 4
More information about the llvm-commits
mailing list