https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64099
--- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Created attachment 35319 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35319&action=edit Reduced version with most I/Os removed. Run time can be tuned by changing the value of number_of_sample_points. With the current value (50) run time is ~6s when the test is compiled with -Ofast -fwhole-program -fno-tree-dominator-opts and ~7s without -fno-tree-dominator-opts (2.8Ghz Core i7).