[llvm] 779af9b - [AMDGPU] Fix -Wunused-variable in SIInsertWaitcnts.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 18 03:29:24 PST 2024
Author: Jie Fu
Date: 2024-01-18T19:28:48+08:00
New Revision: 779af9b713d78b60e724e2a14c6490045b13b640
URL: https://github.com/llvm/llvm-project/commit/779af9b713d78b60e724e2a14c6490045b13b640
DIFF: https://github.com/llvm/llvm-project/commit/779af9b713d78b60e724e2a14c6490045b13b640.diff
LOG: [AMDGPU] Fix -Wunused-variable in SIInsertWaitcnts.cpp (NFC)
llvm-project/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp:1539:10:
error: unused variable 'SWaitInst' [-Werror,-Wunused-variable]
auto SWaitInst =
^
1 error generated.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index c35e944df408cc2..6ecb1c8bf6e1db2 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -1536,7 +1536,7 @@ bool WaitcntGeneratorGFX12Plus::createNewWaitcnt(
if (Count == ~0u)
continue;
- auto SWaitInst =
+ [[maybe_unused]] auto SWaitInst =
BuildMI(Block, It, DL, TII->get(instrsForExtendedCounterTypes[CT]))
.addImm(Count);
More information about the llvm-commits
mailing list