From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 64EFF3858022; Tue, 18 Jul 2023 11:15:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64EFF3858022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689678935; bh=nfc0RpOCEdyaZePkhIXpYvlKe+PKpBuEQnvBfv4EACQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HY495G96imc89biNoazM5UgZpl4q6nJ8FxOumjZVHodKhCn+1gzyCooBWI20lyx2V z+q6sddnsB8+IxzG1FTYd/vRMN0A1y7QTaRTrMkt+Lsv2Z/bwdJV6zE4eIcev1J5P4 EAWBHCraywhpiCRiRoVQ0iYRzBrP7YRJkauXGDA8= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/61747] min,max pattern not always properly optimized (for sse4 targets) Date: Tue, 18 Jul 2023 11:15:34 +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: 4.9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61747 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org Status|NEW |ASSIGNED --- Comment #7 from Richard Biener --- The cases with constant arguments fail to be recognized by the x86 conditio= nal move expansion because RTL expansion makes it too difficult to see they are equal where required. That is emit_conditional_move forcing the constant to two different regs via prepare_cmp_insn. I'm testing a patch for this.=