re PR target/42495 (redundant memory load)
authorMaxim Kuvyrkov <maxim@codesourcery.com>
Tue, 27 Jul 2010 19:44:51 +0000 (19:44 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Tue, 27 Jul 2010 19:44:51 +0000 (19:44 +0000)
commitd37c3c6271c02adcc159e84630e33de8ee8471b7
treef8f2b26252296ce86368166625eb73b53e466f20
parent3393e880c6040bac26ef0b183273877844dd2116
re PR target/42495 (redundant memory load)

PR target/42495
PR middle-end/42574
* config/arm/arm.c (legitimize_pic_address): Use
gen_calculate_pic_address pattern to emit calculation of PIC address.
(will_be_in_index_register): New function.
(arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
(thumb1_legitimate_address_p): Use it provided !strict_p.
* config/arm/arm.md (calculate_pic_address): New expand and split.

From-SVN: r162595
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm.md