[AArch64] Use @ pattern to eliminate switch statement in one more place
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 16 Oct 2018 17:28:56 +0000 (17:28 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 16 Oct 2018 17:28:56 +0000 (17:28 +0000)
commit21cebf90b6547434d1ccb3f09287d02c1e8d2004
tree670b879f6905ab578eadac730317d86517e680b4
parent436ea0e5d316be9867bb23db70a09e12107c0d7d
[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.

From-SVN: r265210
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md