This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][AArch64]Tidy up aarch64_simd_expand_args


On 17 November 2014 16:56, Alan Lawrence <alan.lawrence@arm.com> wrote:
> This is a pure tidyup, no new functionality. Changes are
> (1) Use op[0] to store the result operand, rather than a separate variable,
> thus combining the two large switch statements into one;
> (2) The 'arg' and 'mode' arrays were (almost-)only ever used to store data
> *within* each iteration, so turn them into scalar variables.
> (3) Use 'opc' rather than 'argc' as it indexes operands.
>
> Cross-tested check-gcc on aarch64-none-elf.
>
> gcc/ChangeLog:
>         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
>         Refactor by combining switch statements and make arrays into
> scalars.

OK /Marcus


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]