SHA1H instructions may be scheduled after a SHA1C instruction
commit6ee90f4f911fcea21badc666ca8a70067756ef7a
authorwilco <wilco@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Jan 2017 18:23:34 +0000 (18 18:23 +0000)
committerwilco <wilco@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Jan 2017 18:23:34 +0000 (18 18:23 +0000)
tree269f0067f0a513c19642c0a53e0cab3c239dad9f
parent1e6c19441c3d9c4a373fc782d0a672ba540e28f6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244586 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c