From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5F5643894C0C; Mon, 26 Oct 2020 12:37:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F5643894C0C From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/97578] ice during IPA pass: inline Date: Mon, 26 Oct 2020 12:37:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc component short_desc 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: Mon, 26 Oct 2020 12:37:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97578 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at redhat dot com, | |mjambor at suse dot cz Component|ipa |c Summary|[11 Regression] ice during |ice during IPA pass: inline |IPA pass: inline | --- Comment #3 from Jan Hubicka --- What hits us here is the hack I needed to introduce to ipa_param_adjustments::modify_call which triggers materialization to make d= ebug info code working. In this case redirection happens from tree-inline and materialization gets us back to tree-inline. Inliner is however not intende= d to be recursive (it uses bb->aux pointers and in this case it will use it twic= e). Martin, Jambor, it would be really great if we did not need to materialize. I do not see h= ow attaching debug info to decls can work if caller is in one partition and ca= llee in another. We could also just add a loop walking all such calls and trigger materialization before going to tree-inline to avoid the recursion problem,= but still IMO debug info will get missing on the partitioning boundary. We could also just avoid the (ab)use of bb->aux and replace it by a vector here which would be also an option.=