* patch to fix PR63740 on trunk
@ 2015-06-22 18:57 Vladimir Makarov
0 siblings, 0 replies; only message in thread
From: Vladimir Makarov @ 2015-06-22 18:57 UTC (permalink / raw)
To: gcc-patches
I've committed patch for PR63740 to the trunk as rev. 224753.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63740
The patch was bootstrapped on x86-64.
2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
PR bootstrap/63740
* lra-lives.c (process_bb_lives): Check insn copying the same
reload pseudo and don't create a copy for it.
Index: lra-lives.c
===================================================================
--- lra-lives.c (revision 224739)
+++ lra-lives.c (working copy)
@@ -565,7 +565,15 @@ process_bb_lives (basic_block bb, int &c
dst_regno = REGNO (SET_DEST (set));
if (dst_regno >= lra_constraint_new_regno_start
&& src_regno >= lra_constraint_new_regno_start)
- lra_create_copy (dst_regno, src_regno, freq);
+ {
+ /* It might be still an original (non-reload) insn with
+ one unused output and a constraint requiring to use
+ the same reg for input/output operands. In this case
+ dst_regno and src_regno have the same value, we don't
+ need a misleading copy for this case. */
+ if (dst_regno != src_regno)
+ lra_create_copy (dst_regno, src_regno, freq);
+ }
else if (dst_regno >= lra_constraint_new_regno_start)
{
if ((hard_regno = src_regno) >= FIRST_PSEUDO_REGISTER)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-22 18:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22 18:57 patch to fix PR63740 on trunk Vladimir Makarov
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).