* [PATCH, IRA] PR78325, R_MIPS_JALR failures
@ 2016-11-15 22:55 Alan Modra
2016-11-16 13:11 ` Bernd Schmidt
0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 2016-11-15 22:55 UTC (permalink / raw)
To: gcc-patches
This is a fix for my PR70890 patch, which incorrectly removed all
REG_EQUIV notes rather than just one regarding a reg that dies.
Bootstrapped and regression tested powerpc64le-linux,
x86_64-linux, and mips-linux. OK to apply?
PR rtl-optimization/78325
PR rtl-optimization/70890
* ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
for dead regno.
diff --git a/gcc/ira.c b/gcc/ira.c
index 315b847..4ee99d7 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -3747,7 +3747,7 @@ combine_and_move_insns (void)
use_insn, when regno was seen as non-local. Now that
regno is local to this block, and dies, such an
equivalence is invalid. */
- if (find_reg_note (use_insn, REG_EQUIV, NULL_RTX))
+ if (find_reg_note (use_insn, REG_EQUIV, regno_reg_rtx[regno]))
{
rtx set = single_set (use_insn);
if (set && REG_P (SET_DEST (set)))
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH, IRA] PR78325, R_MIPS_JALR failures
2016-11-15 22:55 [PATCH, IRA] PR78325, R_MIPS_JALR failures Alan Modra
@ 2016-11-16 13:11 ` Bernd Schmidt
0 siblings, 0 replies; 2+ messages in thread
From: Bernd Schmidt @ 2016-11-16 13:11 UTC (permalink / raw)
To: Alan Modra, gcc-patches
On 11/15/2016 11:55 PM, Alan Modra wrote:
> This is a fix for my PR70890 patch, which incorrectly removed all
> REG_EQUIV notes rather than just one regarding a reg that dies.
> Bootstrapped and regression tested powerpc64le-linux,
> x86_64-linux, and mips-linux. OK to apply?
>
> PR rtl-optimization/78325
> PR rtl-optimization/70890
> * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
> for dead regno.
Ok.
Bernd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-16 13:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-15 22:55 [PATCH, IRA] PR78325, R_MIPS_JALR failures Alan Modra
2016-11-16 13:11 ` Bernd Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).