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.

llvm-svn: 223686

llvm/lib/Target/R600/SIShrinkInstructions.cpp

index 45e83f5..e97f934 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()))