Hi, After https://gcc.gnu.org/ml/gcc-cvs/2017-06/msg01066.html, there was many crashes with -mcpu=thunderx2t99. This patch fixes the crashes.
Committed after bootstrap and test. Thanks, Andrew Pinski ChangeLog: * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
Index: config/aarch64/aarch64.c =================================================================== --- config/aarch64/aarch64.c (revision 250059) +++ config/aarch64/aarch64.c (working copy) @@ -14324,7 +14324,9 @@ } } - 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: