From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7EA163858C62; Wed, 12 Apr 2023 19:43:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EA163858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681328599; bh=ICzDSC5z3C5nL3bylkZxz4MMXH+jcKnfmLrj3syHYog=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TsBBq26APhtWLGuJx/v9Fqt2GVXKMAk66oMT7aJhzSP+z5XjkbncyFfeymywlpj9S 9btElR3iefcagHvO2EWmvH05joF8TojMFISPgISPW4nt/4CsobZ5lKYodGDlq9NGMl VO3aMPuog6K6Gj/Gc/u1PQubpQiYh7DX3FNw45XA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109483] Unoptimal uncprop with assembler flag output Date: Wed, 12 Apr 2023 19:43:19 +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: 13.0 X-Bugzilla-Keywords: inline-asm, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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=3D109483 --- Comment #5 from Andrew Pinski --- (In reply to Uro=C5=A1 Bizjak from comment #4) > Even the above is not optimal. I'd expect: >=20 > ... > .L8: > #APP > # 6 "t.c" 1 > int3 > # 0 "" 2 > #NO_APP > je .L2 > xorl %eax, %eax > ret IF-CASE-2 found, start 3, else 5 verify found no changes in insn with uid =3D 15. changing bb of uid 4 from 5 to 3 deleting block 5 Conversion succeeded on pass 1. Adding -fno-if-conversion gets what you want too. But I am not 100% sure if= it is "better".=