From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15890 invoked by alias); 4 Jan 2015 16:37:32 -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 15835 invoked by uid 48); 4 Jan 2015 16:37:28 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/64425] [5 Regression] r219076 causes 36% tramp3d slowdown Date: Sun, 04 Jan 2015 16:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 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: 2015-01/txt/msg00170.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64425 --- Comment #3 from Jan Hubicka --- Yep, I looked into this before comitting the patch. I have tracked it down to inlining of function UniformRectilinearMesh >::cellPosition(Loc<3> const&) const: inline PointType_t cellPosition(const Loc_t &loc) const { PointType_t point; for (int i=0; i references, overall 9%. As an effect of various roundoff errors being eliminated by the sreal code, the functions sinks down in the priority queue quite a bit bellow the inline-unit-growth cutoff. There seems to be no issues with priority calculation, just the functions looks bit uncool for inlining and got lucky in the old model (that was for years tested on tramp3d) The patch I sent for simplification of priority queue solves the failure: https://gcc.gnu.org/ml/gcc-patches/2015-01/msg00004.html The patch seem win in general on benchmarks I tested (it is big win for tramp3d so I can reduce unit growth to 15%) I however would like first the testers to get restarted after vacations and there is one regression I want to analyze first in my testing.