From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A13D2385841C; Wed, 26 Apr 2023 13:16:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A13D2385841C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682514960; bh=j4YcEHFNrOwEyBm/CARVWvc373RxSp9OmiqfnwQoLCs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=g4NkYCBs6x4vKh/mtI+99JItwLc1Lv0g1liOZYxZEtMO3cWA5nuQ53MJUB67ed7dc VOhy7uK7uKXOIxgKzofXpXxHdy3rp/kISSgcGegj6G1d7Gw+tGGS5vzuLXZDgHXhg0 XwmAJnCi+KYOGXKAOPKTXGYV6efhKBgpnwwTF000= From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/109607] IPA replaces stmt with invalid gimple Date: Wed, 26 Apr 2023 13:16:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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=3D109607 --- Comment #3 from Martin Jambor --- (In reply to Richard Biener from comment #0) > On cfghooks.cc we replace >=20 > BIT_FIELD_REF <*this_8(D), 8, 56> >=20 An alternative (perhaps for the release branches) would be to avoid SRA if = the parameter takes place in souch constructs. But the patch in comment #2 looks like just the right thing to do.=