From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 269E33857C4C; Fri, 31 Jul 2020 11:31:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 269E33857C4C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596195084; bh=bbes1anP0+c7RRAc8f3OPD8+8SftkJfgv11SB+yse7w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZdcZ0KYo2/mrZUWRU5jEv99quIVSSHvSAl2cv+M5yX6cChpU3UAWuETRN1XKPh6AH 8eL/MrRWCNzrtBIwuT8S93WPhpzMUm3MX9O9FziRCV0MGmiWPSxDVYcWD/ky/ZgfSn AnuB+4TVvCfQaSMqwImd1c9+Z/2uPrGW49dtGMjI= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/96388] scheduling takes forever with -fPIC Date: Fri, 31 Jul 2020 11:31:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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, 31 Jul 2020 11:31:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96388 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amker at gcc dot gnu.org --- Comment #13 from Martin Li=C5=A1ka --- (In reply to Richard Biener from comment #10) > The partially reduced (In reply to Martin Li=C5=A1ka from comment #9) > > Created attachment 48962 [details] > > Partially reduced test-case > >=20 > > The reduction is quite stuck at this point. >=20 > No longer keys on -fPIC though, so the bisection for this is likely wrong. You are right, without the -fPIC argument, for 1GB memory limit, first bad = is: r5-4790-g43722f9fa69d4cc9 where the previous revision only needs ~190MB. > -fno-schedule-insns2 improves it from 18s to 5s compile time and from > 1.1GB of peak RSS to 320MB. >=20 > scheduling 2 : 12.69 ( 71%) 0.10 ( 67%) 12.79 ( > 70%) 11128 kB ( 16%) >=20 > -fmem-report doesn't show anything interesting, looking for heap allocati= ons > now to find the offender. >=20 > Can you bisect your reduced testcase again? GCC 8.4 behaves the same for= it > rather than being good but GCC 4.8.5 is fine.=