Commit 066c14c9 by Wilco Dijkstra Committed by Wilco Dijkstra

Enable instruction fusion of AES instructions on ARM for Cortex-A53 and

Cortex-A57.

    gcc/
        * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
        (arm_cortex_a57_tune): Likewise.
        (aarch_macro_fusion_pair_p): Add support for AES fusion.
        * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC

From-SVN: r233266
parent 2cba7d7b
2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
* config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
(arm_cortex_a57_tune): Likewise.
(aarch_macro_fusion_pair_p): Add support for AES fusion.
* config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
* timevar.def (TV_PHASE_DBGINFO): Delete.
......
......@@ -300,8 +300,9 @@ struct tune_params
enum fuse_ops
{
FUSE_NOTHING = 0,
FUSE_MOVW_MOVT = 1 << 0
} fusible_ops: 1;
FUSE_MOVW_MOVT = 1 << 0,
FUSE_AES_AESMC = 1 << 1
} fusible_ops: 2;
/* Depth of scheduling queue to check for L2 autoprefetcher. */
enum {SCHED_AUTOPREF_OFF, SCHED_AUTOPREF_RANK, SCHED_AUTOPREF_FULL}
sched_autopref: 2;
......
......@@ -1982,7 +1982,7 @@ const struct tune_params arm_cortex_a53_tune =
tune_params::DISPARAGE_FLAGS_NEITHER,
tune_params::PREF_NEON_64_FALSE,
tune_params::PREF_NEON_STRINGOPS_TRUE,
FUSE_OPS (tune_params::FUSE_MOVW_MOVT),
FUSE_OPS (tune_params::FUSE_MOVW_MOVT | tune_params::FUSE_AES_AESMC),
tune_params::SCHED_AUTOPREF_OFF
};
......@@ -2005,7 +2005,7 @@ const struct tune_params arm_cortex_a57_tune =
tune_params::DISPARAGE_FLAGS_ALL,
tune_params::PREF_NEON_64_FALSE,
tune_params::PREF_NEON_STRINGOPS_TRUE,
FUSE_OPS (tune_params::FUSE_MOVW_MOVT),
FUSE_OPS (tune_params::FUSE_MOVW_MOVT | tune_params::FUSE_AES_AESMC),
tune_params::SCHED_AUTOPREF_FULL
};
......@@ -29683,6 +29683,10 @@ aarch_macro_fusion_pair_p (rtx_insn* prev, rtx_insn* curr)
if (!arm_macro_fusion_p ())
return false;
if (current_tune->fusible_ops & tune_params::FUSE_AES_AESMC
&& aarch_crypto_can_dual_issue (prev, curr))
return true;
if (current_tune->fusible_ops & tune_params::FUSE_MOVW_MOVT)
{
/* We are trying to fuse
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment