mips.c (mips_reorg_process_insns): Check for jumps before checking for annulled branches.
authorRichard Sandiford <rdsandiford@googlemail.com>
Sat, 20 Aug 2011 18:55:49 +0000 (18:55 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 20 Aug 2011 18:55:49 +0000 (18:55 +0000)
gcc/
* config/mips/mips.c (mips_reorg_process_insns): Check for jumps
before checking for annulled branches.

From-SVN: r177930

gcc/ChangeLog
gcc/config/mips/mips.c

index 2217302f643363a1e0fde775980b2e2976a79d92..ee94a7956b28035f5625e3d7898423f4793117da 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
+       before checking for annulled branches.
+
 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.c (ix86_binary_operator_ok): Use
index 1c9b86697af4a42a0ffeaf55f29e89d3adc73ee4..5a410eb04640ba75520932d52f5240b175474181 100644 (file)
@@ -14831,6 +14831,7 @@ mips_reorg_process_insns (void)
                 executed.  */
              else if (recog_memoized (insn) == CODE_FOR_r10k_cache_barrier
                       && last_insn
+                      && JUMP_P (SEQ_BEGIN (last_insn))
                       && INSN_ANNULLED_BRANCH_P (SEQ_BEGIN (last_insn)))
                delete_insn (insn);
              else