[AArch64] Use @ pattern to eliminate switch statement in one more place
commitb16fedf6916c3c82c1c5bee19f35baef5c1b42af
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Oct 2018 17:28:56 +0000 (16 17:28 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Oct 2018 17:28:56 +0000 (16 17:28 +0000)
tree670b879f6905ab578eadac730317d86517e680b4
parent79cf7696a4b95ad1dd1b5e7107cdd27039ca9fe1
[AArch64] Use @ pattern to eliminate switch statement in one more place

We can use the new '@' modifier to MD patterns to generate mode-parametrised gen_ functions
for the despeculate_copy patterns and therefore remove the switch on modes in aarch64.c
that is used to pick the right generator. This simplifies the code.

* config/aarch64/aarch64.md (despeculate_copy<ALLI_TI:mode>):
Rename to...
(@despeculate_copy<ALLI_TI:mode>): ... This.
* config/aarch64/aarch64.c (aarch64_speculation_safe_value): Remove
switch statement.

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