SHA1H instructions may be scheduled after a SHA1C instruction that uses the same...
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 18 Jan 2017 18:23:34 +0000 (18:23 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Wed, 18 Jan 2017 18:23:34 +0000 (18:23 +0000)
commit9bca63d44bf10ac1341f44b86b1c0f5b1ca5bc1b
tree269f0067f0a513c19642c0a53e0cab3c239dad9f
parent90553aacf81daa11af51e62f687c0d5460ec1ee7
SHA1H instructions may be scheduled after a SHA1C instruction that uses the same input register.

SHA1H instructions may be scheduled after a SHA1C instruction
that uses the same input register.  However SHA1C updates its input,
so if SHA1H is scheduled after it, it requires an extra move.
Increase the priority of SHA1H to ensure it gets scheduled
earlier, avoiding the move.

    gcc/
* config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
New function.
(TARGET_SCHED_ADJUST_PRIORITY): Define target hook.

From-SVN: r244586
gcc/ChangeLog
gcc/config/aarch64/aarch64.c