https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90001
Bug ID: 90001 Summary: Compile-time hog in swing modulo scheduler Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: compile-time-hog Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: powerpc-*-linux-gnu At least gcc-9.0.0-alpha20190407 (r270192), 8.2, 7.3, 6.3 take inordinate time when compiling the following testcase reduced from libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c w/ -O1 -fmodulo-sched -funroll-all-loops: % time powerpc-e300c3-linux-gnu-gcc-9.0.0-alpha20190407 -O1 -fmodulo-sched -funroll-all-loops -c parallel-loop-1.c -ftime-report Time variable usr sys wall GGC phase setup : 0.00 ( 0%) 0.00 ( 0%) 0.00 ( 0%) 1582 kB ( 33%) phase opt and generate : 17.22 (100%) 0.00 ( 0%) 17.23 (100%) 3076 kB ( 64%) trivially dead code : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( 0%) 0 kB ( 0%) tree SSA incremental : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( 0%) 60 kB ( 1%) dominator optimization : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( 0%) 25 kB ( 1%) complete unrolling : 0.01 ( 0%) 0.00 ( 0%) 0.00 ( 0%) 175 kB ( 4%) tree STMT verifier : 0.01 ( 0%) 0.00 ( 0%) 0.00 ( 0%) 0 kB ( 0%) CSE : 0.01 ( 0%) 0.00 ( 0%) 0.00 ( 0%) 17 kB ( 0%) dead store elim1 : 0.01 ( 0%) 0.00 ( 0%) 0.00 ( 0%) 79 kB ( 2%) web : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( 0%) 0 kB ( 0%) sms modulo scheduling : 17.17 (100%) 0.00 ( 0%) 17.17 (100%) 50 kB ( 1%) integrated RA : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( 0%) 815 kB ( 17%) rename registers : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( 0%) 6 kB ( 0%) verify RTL sharing : 0.01 ( 0%) 0.00 ( 0%) 0.00 ( 0%) 0 kB ( 0%) TOTAL : 17.22 0.00 17.23 4844 kB Extra diagnostic checks enabled; compiler may run slowly. Configure with --enable-checking=release to disable checks. powerpc-e300c3-linux-gnu-gcc-9.0.0-alpha20190407 -O1 -fmodulo-sched -c 17.23s user 0.01s system 99% cpu 17.237 total 99.95% cc1 [.] longest_simple_path 0.03% cc1 [.] create_ddg_all_sccs 0.03% cc1 [.] memcpy@plt