diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2009-09-04 19:36:26 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2009-09-04 19:36:26 +0000 |
commit | 1fe281160d1dfbcdca55b6f6f55878ea03620aed (patch) | |
tree | 122a84dde022b7849f0170381f05f520adc7bc72 /gcc/ira.c | |
parent | 14e58be03205af4b54fcf290a9f650ae3d9f4686 (diff) | |
download | gcc-1fe281160d1dfbcdca55b6f6f55878ea03620aed.tar.gz |
re PR bootstrap/41241 (bootstrap comparison failure)
2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
PR bootstrap/41241
* ira.c (update_equiv_reg): Revert my previous patch for the PR.
* reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
(reginfo_init): Don't call allocate_reg_info.
From-SVN: r151440
Diffstat (limited to 'gcc/ira.c')
-rw-r--r-- | gcc/ira.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ira.c b/gcc/ira.c index b9b10dc9d3c..b960f769534 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -2384,9 +2384,21 @@ update_equiv_regs (void) /* We only handle the case of a pseudo register being set once, or always to the same value. */ + /* ??? The mn10200 port breaks if we add equivalences for + values that need an ADDRESS_REGS register and set them equivalent + to a MEM of a pseudo. The actual problem is in the over-conservative + handling of INPADDR_ADDRESS / INPUT_ADDRESS / INPUT triples in + calculate_needs, but we traditionally work around this problem + here by rejecting equivalences when the destination is in a register + that's likely spilled. This is fragile, of course, since the + preferred class of a pseudo depends on all instructions that set + or use it. */ + if (!REG_P (dest) || (regno = REGNO (dest)) < FIRST_PSEUDO_REGISTER - || reg_equiv[regno].init_insns == const0_rtx) + || reg_equiv[regno].init_insns == const0_rtx + || (CLASS_LIKELY_SPILLED_P (reg_preferred_class (regno)) + && MEM_P (src) && ! reg_equiv[regno].is_arg_equivalence)) { /* This might be setting a SUBREG of a pseudo, a pseudo that is also set somewhere else to a constant. */ |