public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] [RA]: Fixing i686 bootstrap failure because of pushing the equivalence patch
@ 2023-10-30 18:33 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-10-30 18:33 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0043a798ef0d2761246d4e372ce510347b3bbe2f
commit 0043a798ef0d2761246d4e372ce510347b3bbe2f
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.
(cherry picked from commit 4d3d2cdb574488223d023b590c3a34ddd93f4dae)
Diff:
---
gcc/ira-costs.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/ira-costs.cc b/gcc/ira-costs.cc
index 209292a3b4a7..7a3628b624a6 100644
--- a/gcc/ira-costs.cc
+++ b/gcc/ira-costs.cc
@@ -1864,7 +1864,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-30 18:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-30 18:33 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] [RA]: Fixing i686 bootstrap failure because of pushing the equivalence patch Jeff Law
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).