[ARM] Enable arm_legitimize_address for Thumb-2
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 14 Oct 2019 12:25:00 +0000 (12:25 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Mon, 14 Oct 2019 12:25:00 +0000 (12:25 +0000)
commitea9782106cd2cfbb53237024dcc984a26acb7130
tree94f048d81f57eef4487a95a966ba4247639a4c68
parentc7207339a7dbce5b68f872064e624dcf1639ba46
[ARM] Enable arm_legitimize_address for Thumb-2

Currently arm_legitimize_address doesn't handle Thumb-2 at all, resulting in
inefficient code.  Since Thumb-2 supports similar address offsets use the Arm
legitimization code for Thumb-2 to get significant codesize and performance
gains.  SPECINT2006 shows 0.4% gain on Cortex-A57, while SPECFP improves 0.2%.

    gcc/
* config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.

From-SVN: r276961
gcc/ChangeLog
gcc/config/arm/arm.c