From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CC3123A47020; Fri, 6 Nov 2020 01:50:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC3123A47020 From: "wsnyder at wsnyder dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97623] [9/10/11 Regression] Extremely slow O2 compile (>>O(n^2)) Date: Fri, 06 Nov 2020 01:50:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.3.1 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: wsnyder at wsnyder dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2020 01:50:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97623 --- Comment #10 from Wilson Snyder --- Running -O2 -fno-code-hoisting -ftime-report and I deleted the 0%/0%/0% lines: Time variable usr sys = wall GGC phase parsing : 0.34 ( 1%) 0.18 ( 67%) 0.52 ( = 1%) 75469 kB ( 46%) phase lang. deferred : 0.02 ( 0%) 0.01 ( 4%) 0.02 ( = 0%) 3473 kB ( 2%) phase opt and generate : 38.01 ( 99%) 0.08 ( 30%) 38.12 ( = 99%) 85265 kB ( 51%) |name lookup : 0.06 ( 0%) 0.02 ( 7%) 0.10 ( = 0%) 3222 kB ( 2%) |overload resolution : 0.02 ( 0%) 0.01 ( 4%) 0.03 ( = 0%) 3886 kB ( 2%) alias stmt walking : 0.27 ( 1%) 0.00 ( 0%) 0.34 ( = 1%) 1 kB ( 0%) preprocessing : 0.05 ( 0%) 0.06 ( 22%) 0.07 ( = 0%) 6448 kB ( 4%) parser (global) : 0.04 ( 0%) 0.04 ( 15%) 0.12 ( = 0%) 29550 kB ( 18%) parser struct body : 0.03 ( 0%) 0.02 ( 7%) 0.10 ( = 0%) 10609 kB ( 6%) parser function body : 0.08 ( 0%) 0.02 ( 7%) 0.09 ( = 0%) 12779 kB ( 8%) parser inl. func. body : 0.02 ( 0%) 0.03 ( 11%) 0.06 ( = 0%) 3940 kB ( 2%) parser inl. meth. body : 0.05 ( 0%) 0.01 ( 4%) 0.05 ( = 0%) 4949 kB ( 3%) template instantiation : 0.09 ( 0%) 0.01 ( 4%) 0.04 ( = 0%) 10514 kB ( 6%) tree SSA incremental : 0.01 ( 0%) 0.01 ( 4%) 0.02 ( = 0%) 6465 kB ( 4%) tree operand scan : 0.00 ( 0%) 0.01 ( 4%) 0.01 ( = 0%) 1875 kB ( 1%) tree PRE : 36.36 ( 95%) 0.05 ( 19%) 36.34 ( = 94%) 32604 kB ( 20%) out of ssa : 0.17 ( 0%) 0.00 ( 0%) 0.17 ( = 0%) 0 kB ( 0%) combiner : 0.16 ( 0%) 0.00 ( 0%) 0.16 ( = 0%) 11911 kB ( 7%) integrated RA : 0.11 ( 0%) 0.00 ( 0%) 0.12 ( = 0%) 4562 kB ( 3%) initialize rtl : 0.00 ( 0%) 0.01 ( 4%) 0.00 ( = 0%) 12 kB ( 0%) TOTAL : 38.37 0.27 38.67=20= =20=20=20=20=20=20 165692 kB real 0m38.707s user 0m38.398s sys 0m0.292s=