summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-12-08 19:55:43 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-12-08 19:55:43 +0000
commit13bd95bbc776e8ab71f98ffb035fe2cc6726cf96 (patch)
treebc6fa3b7cb2b52014fc457d70da88ed61efea810 /llvm/lib/Target
parent7c627a0d2472fa0b74a92333193f83c869c40f4a (diff)
downloadbcm5719-llvm-13bd95bbc776e8ab71f98ffb035fe2cc6726cf96.tar.gz
bcm5719-llvm-13bd95bbc776e8ab71f98ffb035fe2cc6726cf96.zip
R600/SI: Move continue after checking s_mov_b32.
There's nothing else to bother trying to shrink these. llvm-svn: 223686
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/R600/SIShrinkInstructions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/R600/SIShrinkInstructions.cpp b/llvm/lib/Target/R600/SIShrinkInstructions.cpp
index 45e83f54e7c..e97f9344187 100644
--- a/llvm/lib/Target/R600/SIShrinkInstructions.cpp
+++ b/llvm/lib/Target/R600/SIShrinkInstructions.cpp
@@ -195,11 +195,11 @@ bool SIShrinkInstructions::runOnMachineFunction(MachineFunction &MF) {
// TODO: Handle FPImm?
if (Src.isImm()) {
- if (isInt<16>(Src.getImm()) && !TII->isInlineConstant(Src)) {
+ if (isInt<16>(Src.getImm()) && !TII->isInlineConstant(Src))
MI.setDesc(TII->get(AMDGPU::S_MOVK_I32));
- continue;
- }
}
+
+ continue;
}
if (!TII->hasVALU32BitEncoding(MI.getOpcode()))
OpenPOWER on IntegriCloud