diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2010-06-17 21:51:55 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2010-06-17 21:51:55 +0000 |
commit | 60de8907d1ad3bb0c8f5943133a4af2702259b70 (patch) | |
tree | f547304e22d7c081d8d210454f60cf572f474b9d /gcc/ira.c | |
parent | d398d9033ab546ac985784ed07051b3f22126d91 (diff) | |
download | gcc-60de8907d1ad3bb0c8f5943133a4af2702259b70.zip gcc-60de8907d1ad3bb0c8f5943133a4af2702259b70.tar.gz gcc-60de8907d1ad3bb0c8f5943133a4af2702259b70.tar.bz2 |
re PR rtl-optimization/39871 (Code size increase on ARM due to poor register allocation)
PR rtl-optimization/39871
* reload1.c (init_eliminable_invariants): For flag_pic, disable
equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
(function_invariant_p): Rule out a plus of frame or arg pointer with
a SYMBOL_REF.
* ira.c (find_reg_equiv_invariant_const): Likewise.
From-SVN: r160947
Diffstat (limited to 'gcc/ira.c')
-rw-r--r-- | gcc/ira.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1586,12 +1586,8 @@ find_reg_equiv_invariant_const (void) x = XEXP (note, 0); - if (! function_invariant_p (x) - || ! flag_pic - /* A function invariant is often CONSTANT_P but may - include a register. We promise to only pass CONSTANT_P - objects to LEGITIMATE_PIC_OPERAND_P. */ - || (CONSTANT_P (x) && LEGITIMATE_PIC_OPERAND_P (x))) + if (! CONSTANT_P (x) + || ! flag_pic || LEGITIMATE_PIC_OPERAND_P (x)) { /* It can happen that a REG_EQUIV note contains a MEM that is not a legitimate memory operand. As later |