[llvm] bfe93ae - [AMDGPU] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 11 13:06:42 PST 2025
Author: Kazu Hirata
Date: 2025-01-11T13:06:37-08:00
New Revision: bfe93aedcc7d393c2697e66d6569baffb701ba6f
URL: https://github.com/llvm/llvm-project/commit/bfe93aedcc7d393c2697e66d6569baffb701ba6f
DIFF: https://github.com/llvm/llvm-project/commit/bfe93aedcc7d393c2697e66d6569baffb701ba6f.diff
LOG: [AMDGPU] Fix a warning
This patch fixes:
llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp:255:18: error: private
field 'DAG' is not used [-Werror,-Wunused-private-field]
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp b/llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp
index b5dd0d8b863315..bbd262748d680e 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp
@@ -252,7 +252,7 @@ using SUsToCandSGsVec = SmallVector<SUToCandSGsPair, 4>;
// only be used for small sized problems or medium sized problems where an exact
// solution is highly desired.
class PipelineSolver {
- ScheduleDAGMI *DAG;
+ [[maybe_unused]] ScheduleDAGMI *DAG;
// Instructions that can be assigned to multiple SchedGroups
DenseMap<int, SUnitsToCandidateSGsMap> SyncedInstrs;
More information about the llvm-commits
mailing list