From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25295 invoked by alias); 5 Nov 2014 09:40:07 -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 25245 invoked by uid 48); 5 Nov 2014 09:40:03 -0000 From: "zhenqiang.chen at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/63743] Thumb1: big regression for float operators by r216728 Date: Wed, 05 Nov 2014 09:40:00 -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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: zhenqiang.chen at arm dot com X-Bugzilla-Status: UNCONFIRMED 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: 2014-11/txt/msg00242.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63743 --- Comment #2 from Zhenqiang Chen --- (In reply to Jakub Jelinek from comment #1) > Were we swapping operands before? I mean, if you rewrite the testcase to > swap the * arguments in the source, did you get the same more efficient code > in the past? Yes. I tried the test case: double test1 (double x, double y) { return x * (x + y); } double test2 (double x, double y) { return (x + y) * x; } Without r216728, I got efficient codes for both functions. But with r216728, I got inefficient codes for both functions.