From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B2B28385DC2E; Mon, 31 Jan 2022 15:24:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2B28385DC2E From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95084] [11/12 Regression] code sinking prevents if-conversion Date: Mon, 31 Jan 2022 15:24:36 +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: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc everconfirmed cf_reconfirmed_on bug_status cc 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: Mon, 31 Jan 2022 15:24:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95084 rsandifo at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|code sinking prevents |[11/12 Regression] code |if-conversion |sinking prevents | |if-conversion Ever confirmed|0 |1 Last reconfirmed| |2022-01-31 Status|UNCONFIRMED |NEW CC| |rsandifo at gcc dot gnu.org --- Comment #1 from rsandifo at gcc dot gnu.org --- Yeah. I'm seeing this as a GCC 11/12 regression on: float f(float *x, float *y) { float res =3D 0; for (int i =3D 0; i < 100; ++i) { float next =3D __builtin_sqrtf (y[i]); res +=3D x[i] < 100 ? x[i] : next; } return res; } which is cut down from HACCmk. Previously we could vectorise the loop for Advanced SIMD at -Ofast, whereas now we require -Ofast -fno-tree-sink. (SVE can vectorise it both ways due to predicated loads.)=