[PATCH] D120025: [AMDGPU] Return better Changed status from SILowerControlFlow
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 18 02:13:07 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG768e6faba8fa: [AMDGPU] Return better Changed status from SILowerControlFlow (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120025/new/
https://reviews.llvm.org/D120025
Files:
llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
Index: llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
+++ llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
@@ -865,6 +865,7 @@
}
}
+ bool Changed = false;
MachineFunction::iterator NextBB;
for (MachineFunction::iterator BI = MF.begin();
BI != MF.end(); BI = NextBB) {
@@ -886,6 +887,7 @@
case AMDGPU::SI_LOOP:
case AMDGPU::SI_END_CF:
SplitMBB = process(MI);
+ Changed = true;
break;
// FIXME: find a better place for this
@@ -894,6 +896,7 @@
lowerInitExec(MBB, MI);
if (LIS)
LIS->removeAllRegUnitsForPhysReg(AMDGPU::EXEC);
+ Changed = true;
break;
default:
@@ -913,5 +916,5 @@
LoweredIf.clear();
KillBlocks.clear();
- return true;
+ return Changed;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120025.409880.patch
Type: text/x-patch
Size: 903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220218/2c3b4f7b/attachment.bin>
More information about the llvm-commits
mailing list