From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99DCA3858D28; Wed, 28 Sep 2022 22:34:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99DCA3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664404497; bh=Gr5x0/EgCYDjONaWL+q5CaVXxdeOsaqQhLl/eln2B+w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FaJPlAjnZN9vDVaW4lM38M999QCyDKoQQ11vWgXDFDLngwnzFa+jSjArDbbGDb07h yBFfNvaaQjHCHJS4wxx/FPfRkx4FnxkiHfjE4Cqnye2+ZxgCd9cGqc8AvcUntGpmev Mlminw1BNP28bONTOxCqmH2V0S/oPaqpqEQaFt18= From: "tommy_murphy at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64215] -Os misses an opportunity to merge two ret instructions Date: Wed, 28 Sep 2022 22:34:57 +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: 4.8.2 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tommy_murphy at hotmail dot com 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=3D64215 --- Comment #4 from Tommy Murphy --- I meant to say that maybe the target needs to be widened/generalised beyond just "Target: x86_64-*-*"? As per my previous comment and link, the s= ame issue has been observed with RISC-V and this comment also mentions it being observed with AVR and MIPS64: https://github.com/riscv-collab/riscv-gnu-toolchain/issues/1048#issuecommen= t-1091943956=