From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 452E03858C78; Sun, 19 Nov 2023 16:23:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 452E03858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700411004; bh=Sl1cbp4y3YtdENo5yeJuIrR4MQtBYwmWqf7LzuTnHqQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ffdW59EjDk5tBog/5gTQ6krTEsrO9OlhrA2sl8Gr9ua3Ud9suiVV5oYHwJaj4pTOv YXByfpJUjhAh8C6kuupMch0qQ0zi/lOafPRCaj70XKAoTNgUaoFSi5YTlJ5t2nsPON RyCUrvLXEcbSpsw3k+DMPSr6MrNbzeDNVQMFJr70= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112324] phiopt fail to recog if (b < 0) max = MAX(-b, max); else max = MAX (b, max) into max = MAX (ABS(b), max) Date: Sun, 19 Nov 2023 16:23:23 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D112324 Sam James changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sjames at gcc dot gnu.org --- Comment #6 from Sam James --- Someone filed a bug for LLVM for x <=3D abs(x) being always true (https://github.com/llvm/llvm-project/issues/72653) and it looks like we're missing that too. Not sure if that's a dupe though.=