+2014-12-11 Andrew Pinski <apinski@cavium.com>
+
+ * config/aarch64/aarch64-protos.h (tune_params): Add align field.
+ * config/aarch64/aarch64.c (generic_tunings): Specify align.
+ (cortexa53_tunings): Likewise.
+ (cortexa57_tunings): Likewise.
+ (thunderx_tunings): Likewise.
+ (aarch64_override_options): Set align_loops, align_jumps,
+ align_functions based on what the tuning struct.
+
2014-12-11 Eric Botcazou <ebotcazou@adacore.com>
* doc/md.texi (Insn Lengths): Fix description of (pc).
&generic_vector_cost,
NAMED_PARAM (memmov_cost, 4),
NAMED_PARAM (issue_rate, 2),
+ NAMED_PARAM (align, 4),
NAMED_PARAM (fuseable_ops, AARCH64_FUSE_NOTHING),
2, /* int_reassoc_width. */
4, /* fp_reassoc_width. */
&generic_vector_cost,
NAMED_PARAM (memmov_cost, 4),
NAMED_PARAM (issue_rate, 2),
+ NAMED_PARAM (align, 8),
NAMED_PARAM (fuseable_ops, (AARCH64_FUSE_MOV_MOVK | AARCH64_FUSE_ADRP_ADD
| AARCH64_FUSE_MOVK_MOVK | AARCH64_FUSE_ADRP_LDR)),
2, /* int_reassoc_width. */
&cortexa57_vector_cost,
NAMED_PARAM (memmov_cost, 4),
NAMED_PARAM (issue_rate, 3),
+ NAMED_PARAM (align, 8),
NAMED_PARAM (fuseable_ops, (AARCH64_FUSE_MOV_MOVK | AARCH64_FUSE_ADRP_ADD | AARCH64_FUSE_MOVK_MOVK)),
2, /* int_reassoc_width. */
4, /* fp_reassoc_width. */
&generic_vector_cost,
NAMED_PARAM (memmov_cost, 6),
NAMED_PARAM (issue_rate, 2),
+ NAMED_PARAM (align, 8),
NAMED_PARAM (fuseable_ops, AARCH64_FUSE_CMP_BRANCH),
2, /* int_reassoc_width. */
4, /* fp_reassoc_width. */
#endif
}
+ /* If not opzimizing for size, set the default
+ alignment to what the target wants */
+ if (!optimize_size)
+ {
+ if (align_loops <= 0)
+ align_loops = aarch64_tune_params->align;
+ if (align_jumps <= 0)
+ align_jumps = aarch64_tune_params->align;
+ if (align_functions <= 0)
+ align_functions = aarch64_tune_params->align;
+ }
+
aarch64_override_options_after_change ();
}