[PATCH] D120024: [AMDGPU] Return better Changed status from SIOptimizeExecMasking
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 18 02:13:03 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd86dcb7ea56a: [AMDGPU] Return better Changed status from SIOptimizeExecMasking (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120024/new/
https://reviews.llvm.org/D120024
Files:
llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
Index: llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
+++ llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
@@ -312,6 +312,7 @@
// x = s_<op>_saveexec_b64 y
//
+ bool Changed = false;
for (MachineBasicBlock &MBB : MF) {
MachineBasicBlock::reverse_iterator I = fixTerminators(*TII, MBB);
MachineBasicBlock::reverse_iterator E = MBB.rend();
@@ -351,6 +352,7 @@
LLVM_DEBUG(dbgs() << "into: " << *PrepareExecInst << '\n');
CopyToExecInst->eraseFromParent();
+ Changed = true;
}
continue;
@@ -456,8 +458,9 @@
OtherInst->substituteRegister(CopyToExec, Exec,
AMDGPU::NoSubRegister, *TRI);
}
- }
- return true;
+ Changed = true;
+ }
+ return Changed;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120024.409879.patch
Type: text/x-patch
Size: 897 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220218/0a3e4c16/attachment.bin>
More information about the llvm-commits
mailing list