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] Fix PR 63724 - Improve immediate generation


On 12 November 2014 16:46, Ramana Radhakrishnan
<ramana.radhakrishnan@arm.com> wrote:

> v2 , based on Richard's suggestion as well as fixing a bug that I hit in
> some more testing at O1. aarch64_internal_mov_immediate should not generate
> a temporary for subtarget when not actually "generating" code.
>
> Tested again on aarch64-none-elf and with a bootstrap / reg test. Ok ?
>
>
> <DATE>  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
>
>         PR target/63724
>         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
>            numerical immediate handling to...
>         (aarch64_internal_mov_immediate): ...this. New.
>         (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
>         (aarch64_mov_operand_p): Relax predicate.
>         * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand
> CONST_INTs.
>         (*movsi_aarch64): Turn into define_insn_and_split and new
> alternative
>         for 'n'.
>         (*movdi_aarch64): Likewise.


OK.

We should be able to remove aarch64_build_constant now.

/Marcus


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