From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E4E2E3870855; Mon, 4 May 2020 06:35:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4E2E3870855 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588574131; bh=xugGZd8pgoXi54o9MEdPq12fTHud6cHn4FA75sE+6xk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DcPuWmf5pmcEW/jNpBTZHdadMkZAjRZPGeW3QJ8jjRqx7+10W45WBj/jvqIbTsAtT YWke9CIrnWk/3quyiVrKvqkcB6WwYNu48woq0hL+okRBY1LEaNrf3T1nPkUoTLHb5q K5D8jBZ4Ld7vDKqIPvQQVYDkkp13UPWll/6GaxzI= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94915] MAX_EXPR weirdly optimized on x86 with -mtune=core2 Date: Mon, 04 May 2020 06:35:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: cf_gcctarget 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, 04 May 2020 06:35:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94915 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-* --- Comment #1 from Richard Biener --- We now can move integer operations over to SSE which in some cases (max/min= vs. cmov can be quite a bit faster). This isolated case is probably not of such kind (but how can you know w/o benchmarking ...). On AMD archs the GPR <-> xmm moves make this unprofitable but those are "free" on intel which makes costing prefer the pmaxsd variant.=