[llvm] r223686 - R600/SI: Move continue after checking s_mov_b32.
Matt Arsenault
Matthew.Arsenault at amd.com
Mon Dec 8 11:55:44 PST 2014
Author: arsenm
Date: Mon Dec 8 13:55:43 2014
New Revision: 223686
URL: http://llvm.org/viewvc/llvm-project?rev=223686&view=rev
Log:
R600/SI: Move continue after checking s_mov_b32.
There's nothing else to bother trying to shrink these.
Modified:
llvm/trunk/lib/Target/R600/SIShrinkInstructions.cpp
Modified: llvm/trunk/lib/Target/R600/SIShrinkInstructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIShrinkInstructions.cpp?rev=223686&r1=223685&r2=223686&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIShrinkInstructions.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIShrinkInstructions.cpp Mon Dec 8 13:55:43 2014
@@ -195,11 +195,11 @@ bool SIShrinkInstructions::runOnMachineF
// 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()))
More information about the llvm-commits
mailing list