+2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
+ aarch64_fusion_enabled_p to check for fusion capabilities.
+
2016-05-31 Richard Biener <rguenther@suse.de>
PR tree-optimization/71352
if (!aarch64_macro_fusion_p ())
return false;
- if (simple_sets_p
- && (aarch64_tune_params.fusible_ops & AARCH64_FUSE_MOV_MOVK))
+ if (simple_sets_p && aarch64_fusion_enabled_p (AARCH64_FUSE_MOV_MOVK))
{
/* We are trying to match:
prev (mov) == (set (reg r0) (const_int imm16))
}
}
- if (simple_sets_p
- && (aarch64_tune_params.fusible_ops & AARCH64_FUSE_ADRP_ADD))
+ if (simple_sets_p && aarch64_fusion_enabled_p (AARCH64_FUSE_ADRP_ADD))
{
/* We're trying to match:
}
}
- if (simple_sets_p
- && (aarch64_tune_params.fusible_ops & AARCH64_FUSE_MOVK_MOVK))
+ if (simple_sets_p && aarch64_fusion_enabled_p (AARCH64_FUSE_MOVK_MOVK))
{
/* We're trying to match:
return true;
}
- if (simple_sets_p
- && (aarch64_tune_params.fusible_ops & AARCH64_FUSE_ADRP_LDR))
+ if (simple_sets_p && aarch64_fusion_enabled_p (AARCH64_FUSE_ADRP_LDR))
{
/* We're trying to match:
prev (adrp) == (set (reg r0)
}
}
- if ((aarch64_tune_params.fusible_ops & AARCH64_FUSE_AES_AESMC)
+ if (aarch64_fusion_enabled_p (AARCH64_FUSE_AES_AESMC)
&& aarch_crypto_can_dual_issue (prev, curr))
return true;
- if ((aarch64_tune_params.fusible_ops & AARCH64_FUSE_CMP_BRANCH)
+ if (aarch64_fusion_enabled_p (AARCH64_FUSE_CMP_BRANCH)
&& any_condjump_p (curr))
{
enum attr_type prev_type = get_attr_type (prev);