From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4DC283858420; Wed, 20 Oct 2021 10:46:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DC283858420 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/102842] [10 Regression] ICE in cselib_record_set at -O2 or greater Date: Wed, 20 Oct 2021 10:46:23 +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.3.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org 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: 10.4 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: Wed, 20 Oct 2021 10:46:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102842 --- Comment #5 from Martin Li=C5=A1ka --- And reduced test-case looks like this: struct Plane { using T =3D float; T *Row(); }; using ImageF =3D Plane; long long Mirror_x; struct EnsurePaddingInPlaceRowByRow { void Process() { switch (strategy_) { case kSlow: float *row =3D img_.Row(); long long xsize =3D x1_; while (Mirror_x >=3D xsize) if (Mirror_x) Mirror_x =3D 2 * xsize - 1; *row =3D Mirror_x; } } ImageF img_; unsigned x1_; enum { kSlow } strategy_; }; void FinalizeImageRect() { EnsurePaddingInPlaceRowByRow ensure_padding; ensure_padding.Process(); }=