public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pushed] [RA]: Fixing i686 bootstrap failure because of pushing the equivalence patch
@ 2023-10-27 19:14 Vladimir Makarov
  0 siblings, 0 replies; only message in thread
From: Vladimir Makarov @ 2023-10-27 19:14 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 132 bytes --]

The following patch fixes i686 bootstrap failure because of my recent 
patch:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112107


[-- Attachment #2: pr112107.patch --]
[-- Type: text/x-patch, Size: 1177 bytes --]

commit 7361b49d7fa3624cb3f1f825a22607d9d31986e5
Author: Vladimir N. Makarov <vmakarov@redhat.com>
Date:   Fri Oct 27 14:50:40 2023 -0400

    [RA]: Fixing i686 bootstrap failure because of pushing the equivalence patch
    
    GCC with my recent patch improving cost calculation for pseudos with
    equivalence may generate different code with and without debug info
    and as the result i686 bootstrap fails on i686.  The patch fixes this
    bug.
    
    gcc/ChangeLog:
    
            PR rtl-optimization/112107
            * ira-costs.cc: (calculate_equiv_gains): Use NONDEBUG_INSN_P
            instead of INSN_P.

diff --git a/gcc/ira-costs.cc b/gcc/ira-costs.cc
index c4086807076..50f80779025 100644
--- a/gcc/ira-costs.cc
+++ b/gcc/ira-costs.cc
@@ -1871,7 +1871,8 @@ calculate_equiv_gains (void)
 	= ira_bb_nodes[bb->index].parent->regno_allocno_map;
       FOR_BB_INSNS (bb, insn)
 	{
-	  if (!INSN_P (insn) || !get_equiv_regno (PATTERN (insn), regno, subreg)
+	  if (!NONDEBUG_INSN_P (insn)
+	      || !get_equiv_regno (PATTERN (insn), regno, subreg)
 	      || !bitmap_bit_p (&equiv_pseudos, regno))
 	    continue;
 	  rtx subst = ira_reg_equiv[regno].memory;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-27 19:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-27 19:14 [pushed] [RA]: Fixing i686 bootstrap failure because of pushing the equivalence patch 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).