R600/SI: Move continue after checking s_mov_b32.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 8 Dec 2014 19:55:43 +0000 (19:55 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 8 Dec 2014 19:55:43 +0000 (19:55 +0000)
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

lib/Target/R600/SIShrinkInstructions.cpp

index 45e83f54e7c283c2e153aae773fcca17343d8ea9..e97f934418730ad2377e28099dff3cbc6b05d19b 100644 (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()))