diff options
Diffstat (limited to 'gcc/dce.c')
-rw-r--r-- | gcc/dce.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/dce.c b/gcc/dce.c index 38a5b307e7b..ee18b58c4ab 100644 --- a/gcc/dce.c +++ b/gcc/dce.c @@ -94,14 +94,6 @@ deletable_insn_p (rtx insn, bool fast, bitmap arg_stores) rtx body, x; int i; - /* Don't delete jumps, notes and the like. */ - if (!NONJUMP_INSN_P (insn)) - return false; - - /* Don't delete insns that can throw. */ - if (!insn_nothrow_p (insn)) - return false; - if (CALL_P (insn) /* We cannot delete calls inside of the recursive dce because this may cause basic blocks to be deleted and this messes up @@ -116,6 +108,14 @@ deletable_insn_p (rtx insn, bool fast, bitmap arg_stores) && !RTL_LOOPING_CONST_OR_PURE_CALL_P (insn))) return find_call_stack_args (insn, false, fast, arg_stores); + /* Don't delete jumps, notes and the like. */ + if (!NONJUMP_INSN_P (insn)) + return false; + + /* Don't delete insns that can throw. */ + if (!insn_nothrow_p (insn)) + return false; + body = PATTERN (insn); switch (GET_CODE (body)) { |