From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1E5EB3851C10; Tue, 28 Apr 2020 12:38:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E5EB3851C10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588077493; bh=iYczjxKzNmC9t58bwN59b0rQGeh9DCE2N4qqC4Njxns=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sWUFPPK20CxcMvT+5ekdRapVhwRokOqLwiUOO3ck9apmGNZa7Ov+UemkA/J4MbT0u Az39+aC4Y7lZUnYk+xPFKM+0Th8kMJKVwEObAuYLzaO/SG5ngyKdbpYwr1BKT+EzQu FjBCbj7QQrxVx8oICO1sIcAvdSDth4sdX9xyEjus= From: "gabravier at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/94804] Failure to elide useless movs in 128-bit addition Date: Tue, 28 Apr 2020 12:38:13 +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: 10.0 X-Bugzilla-Keywords: missed-optimization, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: gabravier at gmail 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2020 12:38:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94804 --- Comment #3 from Gabriel Ravier --- So, things like=20 uint64_t swap64(uint64_t x) { uint64_t a =3D __builtin_bswap32(x); x >>=3D 32; a <<=3D 32; return __builtin_bswap32(x) | a; } Having similar problems with useless movs is from the same non well-optimiz= ed register allocation on function boundaries ?=