Hi,

Constant building in the AArch64 backend spits out assembly code, which
affects scheduling of the generated code.
This patch rewrites the code to use RTL patterns.

A full aarch64-none-elf regression run shows no issues.
 
Thanks
Sofiane

-----

ChangeLog:

2012-11-26  Sofiane Naci  <sofiane.n...@arm.com>

        * config/aarch64/aarch64.c (aarch64_build_constant): Update
prototype.
        Call emit_move_insn     instead of printing movi/movn/movz
instructions.
        Call gen_insv_immdi instead of printing movk instruction.
        (aarch64_add_constant): Update prototype.
        Generate RTL instead of priting add/sub instructions.
        (aarch64_output_mi_thunk): Update calls to aarch64_build_constant
        and aarch64_add_constant.

Attachment: aarch64-refactor-const-gen.patch
Description: Binary data

Reply via email to