From: David Malcolm Date: Fri, 5 Sep 2014 01:32:23 +0000 (+0000) Subject: Remove a cast in cse.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49506606f08072a9780d8eef521ea06bf2edc06e;p=gcc.git Remove a cast in cse.c gcc/ 2014-09-05 David Malcolm * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to rtx_insn *, eliminating a checked cast. From-SVN: r214932 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60653f84d2b..7b32da10d89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-05 David Malcolm + + * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to + rtx_insn *, eliminating a checked cast. + 2014-09-05 David Malcolm * rtl.h (modified_between_p): Strengthen params 2 and 3 from diff --git a/gcc/cse.c b/gcc/cse.c index 866b0ee5bc7..90b08b62fd1 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -5435,7 +5435,8 @@ cse_insn (rtx_insn *insn) and hope for the best. */ if (n_sets == 1) { - rtx new_rtx, note; + rtx_insn *new_rtx; + rtx note; new_rtx = emit_jump_insn_before (gen_jump (XEXP (src, 0)), insn); JUMP_LABEL (new_rtx) = XEXP (src, 0); @@ -5450,7 +5451,7 @@ cse_insn (rtx_insn *insn) } delete_insn_and_edges (insn); - insn = as_a (new_rtx); + insn = new_rtx; } else INSN_CODE (insn) = -1;