From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 257253857349; Tue, 16 May 2023 08:19:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 257253857349 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684225163; bh=r0bGa9mC3m65POJosn/EIoi8tL3/snt/FHRNrKd9LQo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vsEjY+bXqH8Hyi5ka0nT6AmRsH0V4a+yBO4wxcRxP2MT7w8Yff358p0bh/FIlgdGg J67VwqiwS0ukYoyE7MpbpkDvjgFGY86vkE5Kqbu1Jdkmq3ThQDaWlLFn+xgNMUwRl1 8QFazAgONAf0S4mgxBcuvEON3jYQXpZcQ7H2Akpo= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/109866] Sometimes using sub/test instead just test Date: Tue, 16 May 2023 08:19:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ubizjak at gmail dot com 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: 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=3D109866 --- Comment #2 from Uro=C5=A1 Bizjak --- A small improvement would be: subl %esi, %edi je .L5 testl %edi, %edi jle .L3 jmp h() .L3: jmp t() .L5: jmp g() Not to mention the unoptimal handling of tail calls...=