[PATCH] D59772: AMDGPU: Remove unnecessary check for isFullCopy
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 07:36:38 PDT 2019
arsenm created this revision.
arsenm added a reviewer: rampitec.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Subregister indexes are not used for physical register operands, so
isFullCopy is implied by the physical register check.
https://reviews.llvm.org/D59772
Files:
lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
Index: lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
===================================================================
--- lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
+++ lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
@@ -76,7 +76,7 @@
}
static bool isFullExecCopy(const MachineInstr& MI) {
- return MI.isFullCopy() && MI.getOperand(1).getReg() == AMDGPU::EXEC;
+ return MI.getOperand(1).getReg() == AMDGPU::EXEC;
}
static unsigned getOrNonExecReg(const MachineInstr &MI,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59772.192104.patch
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190325/6b5548aa/attachment.bin>
More information about the llvm-commits
mailing list