From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 36FC43858D20; Tue, 1 Nov 2022 20:31:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36FC43858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667334673; bh=g9lYXuckT7QTxWcgs/+PNz4Ks9REzkIAKl01ZtZYlBE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yc5DtvChmr/B+SbvnSxicwCH4vGxtYfVyC4VtBvVuYVuRV7RjE0YnbSTxBH8lXq2W Zu4sLN8VRJD+WdK/pgYTO0J+UuB+f1/J74/L0mCyUMawWnu5gpPulIUDExp+zVgvcp 7o3aIOzv3OdeXoK+MA1+FODJQlLhudY0D3um6TRg= From: "vineetg at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106602] riscv: suboptimal codegen for zero_extendsidi2_shifted w/o bitmanip Date: Tue, 01 Nov 2022 20:31:13 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: vineetg at rivosinc 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=3D106602 --- Comment #9 from Vineet Gupta --- (In reply to Jeffrey A. Law from comment #7) > There's some code in combine that's supposed to take advantage of REG_EQU= AL > notes which is supposed to help with this kind of scenario. Digging into > that might help. Awesome, thx for the pointer Jeff.=20 Indeed combine has a note processing fallback in the end. RV backend is got generating a note for the const split case (1 << 38). Let me see if I can f= ix that.=