https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110396
--- Comment #3 from luydorarko at vusra dot com <luydorarko at vusra dot com> --- (In reply to Andrew Pinski from comment #2) > This is basically a dup of bug 102253. The problem is there is a known > scalability issues with large loop depth. > > How did you generate this testcase, is it from real code or just generated > to try to hit some compile bugs? > > *** This bug has been marked as a duplicate of bug 102253 *** This is to solve a combinatorics problem: count all 8x8 matrices whose rows and columns add up to 6. You can see the variable names refer to row and column indices. The tedious loops in the C++ code were all generated by a Python script. It is part of a bigger exploration for different orders and different row sums / column sums. A similar code for smaller row-sums and column-sums compiled and ran quickly, and all smaller orders run quickly. This was the smallest problem instance that exposed the time run.