From: David Malcolm Date: Wed, 27 Aug 2014 19:43:12 +0000 (+0000) Subject: Tweak to ira-lives.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c74ef30d7b26519a1786890296873e44b95ddabc;p=gcc.git Tweak to ira-lives.c gcc/ 2014-08-27 David Malcolm * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local "prev" from rtx to rtx_insn *. From-SVN: r214587 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eaab05edb71..dbae32edf93 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-27 David Malcolm + + * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local + "prev" from rtx to rtx_insn *. + 2014-08-27 David Malcolm * rtl.h (INSN_UID): Convert from a macro to a pair of inline diff --git a/gcc/ira-lives.c b/gcc/ira-lives.c index 916f49224c4..9f0cff2afb6 100644 --- a/gcc/ira-lives.c +++ b/gcc/ira-lives.c @@ -1004,7 +1004,7 @@ find_call_crossed_cheap_reg (rtx_insn *insn) { basic_block bb = BLOCK_FOR_INSN (insn); rtx reg = SET_SRC (exp); - rtx prev = PREV_INSN (insn); + rtx_insn *prev = PREV_INSN (insn); while (prev && !(INSN_P (prev) && BLOCK_FOR_INSN (prev) != bb)) {