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:
61f8af2
)
[AMDGPU] SIShrinkInstructions: remove redundant check
author
Jay Foad
<jay.foad@amd.com>
Mon, 13 Dec 2021 14:44:13 +0000
(14:44 +0000)
committer
Jay Foad
<jay.foad@amd.com>
Mon, 13 Dec 2021 14:46:40 +0000
(14:46 +0000)
canShrink already calls hasVALU32BitEncoding, so there is no need
to call it again here.
llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
index
3a372d4
..
774e2b3
100644
(file)
--- a/
llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
+++ b/
llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
@@
-731,11
+731,6
@@
bool SIShrinkInstructions::runOnMachineFunction(MachineFunction &MF) {
continue;
}
- // getVOPe32 could be -1 here if we started with an instruction that had
- // a 32-bit encoding and then commuted it to an instruction that did not.
- if (!TII->hasVALU32BitEncoding(MI.getOpcode()))
- continue;
-
int Op32 = AMDGPU::getVOPe32(MI.getOpcode());
if (TII->isVOPC(Op32)) {