Adjust literal pool offset in Thumb-2 movsi patterns
authorWilco Dijkstra <wdijkstr@arm.com>
Tue, 30 Jul 2019 15:27:04 +0000 (15:27 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Tue, 30 Jul 2019 15:27:04 +0000 (15:27 +0000)
commitcefbac6ec744761110e337c4b51b96a236916ba1
tree248f0e1faceef920ad0408dadfc98f99baebcb50
parentd9c425fb659c7df40eddf66349d846ed0cf63fda
Adjust literal pool offset in Thumb-2 movsi patterns

My previous change to the Thumb-2 movsi patterns caused a codesize regression
with -Os in large functions.  Fix this by using the literal pool offset of the
16-bit literal load so that the literal pool is dumped earlier, reducing the
number of 32-bit literal loads.

Bootstrap & regress OK on arm-none-linux-gnueabihf --with-cpu=cortex-a57

    gcc/
* config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
* config/arm/vfp.md (thumb2_movsi_vfp): Likewise.

From-SVN: r273911
gcc/ChangeLog
gcc/config/arm/thumb2.md
gcc/config/arm/vfp.md