[PATCH][AArch64] Use @ pattern to eliminate switch statement in one more place

Kyrylo Tkachov kyrylo.tkachov@arm.com
Tue Oct 16 09:08:00 GMT 2018


Hi all,

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.

Bootstrapped and tested on aarch64-none-linux-gnu.

Ok for trunk?

Thanks,
Kyrill

2018-10-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: despec.patch
Type: text/x-patch
Size: 1829 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181016/aa50b813/attachment.bin>


More information about the Gcc-patches mailing list