[llvm] c1ad11e - [AMDGPU] Remove unused variable 'CNI' in /AMDGPUMachineCFGStructurizer.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 25 00:57:18 PDT 2023
Author: Jie Fu
Date: 2023-07-25T15:56:40+08:00
New Revision: c1ad11e12bb505419c5d066d01f83f024b0779e7
URL: https://github.com/llvm/llvm-project/commit/c1ad11e12bb505419c5d066d01f83f024b0779e7
DIFF: https://github.com/llvm/llvm-project/commit/c1ad11e12bb505419c5d066d01f83f024b0779e7.diff
LOG: [AMDGPU] Remove unused variable 'CNI' in /AMDGPUMachineCFGStructurizer.cpp (NFC)
/Users/jiefu/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp:2603:10: error: variable 'CNI' set but not used [-Werror,-Wunused-but-set-variable]
auto CNI = CI;
^
1 error generated.
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp b/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
index c96fab08a2676c..d90fcac875408e 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
@@ -2600,9 +2600,6 @@ bool AMDGPUMachineCFGStructurizer::structurizeComplexRegion(RegionMRT *Region) {
LLVM_DEBUG(dbgs() << "CurrentRegion: \n");
LLVM_DEBUG(LRegion->print(dbgs(), TRI));
- auto CNI = CI;
- ++CNI;
-
MRT *Child = (*CI);
if (Child->isRegion()) {
More information about the llvm-commits
mailing list