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

2018-10-16 Thread Richard Sandiford
Kyrylo Tkachov writes: > 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. > > B

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

2018-10-16 Thread Kyrylo Tkachov
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-non