[PATCH] D100969: [AMDGPU] SIWholeQuadMode: don't add duplicate implicit $exec operands
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 22 01:20:04 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG79cb3ba08f80: [AMDGPU] SIWholeQuadMode: don't add duplicate implicit $exec operands (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100969/new/
https://reviews.llvm.org/D100969
Files:
llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
Index: llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
+++ llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
@@ -1436,8 +1436,11 @@
const unsigned MovOp = TII->getMovOpcode(regClass);
MI->setDesc(TII->get(MovOp));
- // And make it implicitly depend on exec (like all VALU movs should do).
- MI->addOperand(MachineOperand::CreateReg(AMDGPU::EXEC, false, true));
+ // Check that it already implicitly depends on exec (like all VALU movs
+ // should do).
+ assert(any_of(MI->implicit_operands(), [](const MachineOperand &MO) {
+ return MO.isUse() && MO.getReg() == AMDGPU::EXEC;
+ }));
} else {
// Remove early-clobber and exec dependency from simple SGPR copies.
// This allows some to be eliminated during/post RA.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100969.339505.patch
Type: text/x-patch
Size: 889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210422/95289b41/attachment.bin>
More information about the llvm-commits
mailing list