[llvm] [DirectX] Remove unneccary check lines (PR #90979)

Chris B via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 10:24:23 PDT 2024


https://github.com/llvm-beanz updated https://github.com/llvm/llvm-project/pull/90979

>From fb83733c9ce4f1aa5bc18b67361cfdb54aa0409b Mon Sep 17 00:00:00 2001
From: Chris Bieneman <chris.bieneman at me.com>
Date: Fri, 3 May 2024 11:05:12 -0500
Subject: [PATCH 1/2] [DirectX] Remove unneccary check lines

These check lines break as of 91446e2aa687e due to changes in how LLVM
handles debug information. Since debug informaiton isn't important to
what this test is verifying we can remove the check lines.
---
 llvm/test/CodeGen/DirectX/strip-fn-attrs.ll | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll b/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
index 4f2000640185d5..05d8318447bdb1 100644
--- a/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
+++ b/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
@@ -9,10 +9,6 @@ define dso_local float @fma(float %0, float %1, float %2) local_unnamed_addr #0
   ret float %5
 }
 
-; CHECK: Function Attrs: nounwind memory(none)
-; Function Attrs: nofree nosync nounwind readnone speculatable willreturn
-declare void @llvm.dbg.value(metadata, metadata, metadata) #1
-
 ; CHECK: attributes #0 = { nounwind memory(none) }
 ; CHECK-NOT: attributes #
 

>From f5d728213a501f143db2f8d0c7c56cec1ef77468 Mon Sep 17 00:00:00 2001
From: Chris Bieneman <chris.bieneman at me.com>
Date: Fri, 3 May 2024 12:24:02 -0500
Subject: [PATCH 2/2] Remove attribute definition

---
 llvm/test/CodeGen/DirectX/strip-fn-attrs.ll | 1 -
 1 file changed, 1 deletion(-)

diff --git a/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll b/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
index 05d8318447bdb1..b0dd89cf90f2b2 100644
--- a/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
+++ b/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
@@ -13,4 +13,3 @@ define dso_local float @fma(float %0, float %1, float %2) local_unnamed_addr #0
 ; CHECK-NOT: attributes #
 
 attributes #0 = { norecurse nounwind readnone willreturn }
-attributes #1 = { nofree nosync nounwind readnone speculatable willreturn }



More information about the llvm-commits mailing list