From: Andrew Pinski Date: Fri, 7 Jul 2017 22:52:12 +0000 (+0000) Subject: aarch64.c (aarch_macro_fusion_pair_p): Check prev_set and curr_set for AARCH64_FUSE_A... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bee7e0fc1246132b09451799efe49225da517d8e;p=gcc.git aarch64.c (aarch_macro_fusion_pair_p): Check prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH. 2017-07-07 Andrew Pinski * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH. From-SVN: r250068 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dbb51913ecf..67a827c64c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-07 Andrew Pinski + + * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check + prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH. + 2017-07-07 Michael Meissner * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher): diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index ef1b5a8e215..799989a4f09 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -14324,7 +14324,9 @@ aarch_macro_fusion_pair_p (rtx_insn *prev, rtx_insn *curr) } } - if (aarch64_fusion_enabled_p (AARCH64_FUSE_ALU_BRANCH) + if (prev_set + && curr_set + && aarch64_fusion_enabled_p (AARCH64_FUSE_ALU_BRANCH) && any_condjump_p (curr)) { /* We're trying to match: