[PATCH] D120025: [AMDGPU] Return better Changed status from SILowerControlFlow
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 17 01:40:34 PST 2022
foad created this revision.
foad added a reviewer: piotr.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
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.409544.patch
Type: text/x-patch
Size: 903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220217/58508d9a/attachment.bin>
More information about the llvm-commits
mailing list