R600/SI: Move continue after checking s_mov_b32.

There's nothing else to bother trying to shrink these.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault 2014-12-08 19:55:43 +00:00
parent 8eef439528
commit dbd00bf51a

View File

@ -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()))