projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cb8c10
)
[AMDGPU] SIFoldOperands: remove an unneeded isReg check. NFC.
author
Jay Foad
<jay.foad@amd.com>
Thu, 8 Apr 2021 15:32:25 +0000
(16:32 +0100)
committer
Jay Foad
<jay.foad@amd.com>
Thu, 8 Apr 2021 15:37:43 +0000
(16:37 +0100)
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
index
a236dc1
..
d1f2760
100644
(file)
--- a/
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+++ b/
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
@@
-1779,8
+1779,7
@@
bool SIFoldOperands::runOnMachineFunction(MachineFunction &MF) {
// %3 = COPY %vgpr0; VGPR_32:%3
// ...
// %vgpr0 = V_MOV_B32_e32 1, implicit %exec
- MachineOperand &Dst = MI.getOperand(0);
- if (Dst.isReg() && !Dst.getReg().isVirtual())
+ if (!MI.getOperand(0).getReg().isVirtual())
continue;
foldInstOperand(MI, OpToFold);