OSDN Git Service

(reg_unused_after): Handle JUMP_INSN inside a sequence.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jul 1996 00:04:53 +0000 (00:04 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jul 1996 00:04:53 +0000 (00:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12554 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/sh/sh.c

index 6969a9c..6b8cc72 100644 (file)
@@ -2339,6 +2339,12 @@ reg_unused_after (reg, insn)
 
              if (GET_CODE (this_insn) == CALL_INSN)
                code = CALL_INSN;
+             else if (GET_CODE (this_insn) == JUMP_INSN)
+               {
+                 if (INSN_ANNULLED_BRANCH_P (this_insn))
+                   return 0;
+                 code = JUMP_INSN;
+               }
 
              if (set && reg_overlap_mentioned_p (reg, SET_SRC (set)))
                return 0;
@@ -2355,6 +2361,8 @@ reg_unused_after (reg, insn)
            }
          if (retval == 1)
            return 1;
+         else if (code == JUMP_INSN)
+           return 0;
        }
       else if (GET_RTX_CLASS (code) == 'i')
        {