[Committed/AARCH64] Fix ICE with -mcpu=thunderx2t99
Andrew Pinski
apinski@cavium.com
Fri Jul 7 22:52:00 GMT 2017
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.
-------------- next part --------------
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:
More information about the Gcc-patches
mailing list