https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64425
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- I've tested the patch, too. There were two issues. 1) on ppc64: (after training) trippels@gcc2-power8 ~ % ~/gcc_test/usr/local/bin/g++ -Ofast -fprofile-use -w tramp3d-v4.cpp tramp3d-v4.cpp:64206:1: internal compiler error: in edge_badness, at ipa-inline.c:1030 } ^ 0x110330ff edge_badness ../../gcc/gcc/ipa-inline.c:1030 0x11039083 update_edge_key ../../gcc/gcc/ipa-inline.c:1059 0x11039083 inline_small_functions ../../gcc/gcc/ipa-inline.c:1634 0x1103b0af ipa_inline ../../gcc/gcc/ipa-inline.c:2175 0x1103b0af execute ../../gcc/gcc/ipa-inline.c:2548 Please submit a full bug report, with preprocessed source if appropriate. 2) Firefox PGO/LTO build on x86_64 segfaults on start.