From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C8C6C385840A; Wed, 11 Oct 2023 06:47:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8C6C385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697006841; bh=nJ8RJyK7mDwUMWf4fRKhxmw18yPkiWWgNOPfBKQeq04=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RV0T7OFgILUsSnrySbMexzh6sol8ODYFCqe6dC/J2LGE4G/GD4CgDAVa6OROsfVRk Wiqryrn155boVe1vsCEdqAFyyVcxcr+GjFVIyasp2tLFhUtfxVimdYvs8wQbkdfjB0 qixLbDP0uOuU21Rkzy0aYTvh2oKibX/MFH18zY2w= From: "rdapp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111760] risc-v regression: COND_LEN_* incorrect fold/simplify in middle-end Date: Wed, 11 Oct 2023 06:47:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rdapp at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D111760 --- Comment #6 from Robin Dapp --- Yes, thanks for filing this bug separately. The patch doesn't disable all = of those optimizations, of course I paid special attention not mess up with th= em. The difference here is that we valueize, add statements to *seq and the last statement is a _30 =3D bla. Then we'd either need to "_30 =3D COND_LEN_MOVE bla" or predicate bla itsel= f. Surely there is a better way.=