OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Aug 2011 18:55:49 +0000 (18:55 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Aug 2011 18:55:49 +0000 (18:55 +0000)
* config/mips/mips.c (mips_reorg_process_insns): Check for jumps
before checking for annulled branches.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177930 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2217302..ee94a79 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 1c9b866..5a410eb 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