From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22199 invoked by alias); 17 Dec 2013 18:09:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22137 invoked by uid 48); 17 Dec 2013 18:09:20 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/35545] virtual call specialization not happening with FDO Date: Tue, 17 Dec 2013 18:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.4.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg01541.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35545 --- Comment #5 from Jan Hubicka --- Main issue seems to be that VRP messes up on: # ap_2 = PHI # prephitmp_14 = PHI <&MEM[(void *)&_ZTV1A + 16B](5)> _19 = *prephitmp_14; here it somehow won't constant propagate the load. Index: passes.def =================================================================== --- passes.def (revision 206040) +++ passes.def (working copy) @@ -236,6 +236,7 @@ along with GCC; see the file COPYING3. NEXT_PASS (pass_reassoc); NEXT_PASS (pass_strength_reduction); NEXT_PASS (pass_dominator); + NEXT_PASS (pass_tracer); /* The only const/copy propagation opportunities left after DOM should be due to degenerate PHI nodes. So rather than run the full propagators, run a specialized pass which @@ -244,7 +245,6 @@ along with GCC; see the file COPYING3. NEXT_PASS (pass_phi_only_cprop); NEXT_PASS (pass_vrp); NEXT_PASS (pass_cd_dce); - NEXT_PASS (pass_tracer); NEXT_PASS (pass_dse); NEXT_PASS (pass_forwprop); NEXT_PASS (pass_phiopt); actually helps since phi_only_cprop is good on this transform. I do not quite gather why VRP can't do it itself. I sent first patch to http://gcc.gnu.org/ml/gcc-patches/2013-12/msg01517.html