From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 60FE2395C05B; Thu, 17 Nov 2022 08:13:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60FE2395C05B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668672788; bh=BLh01vmWl5zZcd91Sikersqw2/amWTeo7ptv07ARzUw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=g3KCevuuPUys/PoQkKLLQbqcM085V9fCmsJf7yQ/qsGewhUkJVK9WwPjtrG7jSah2 Ltm3C1IdEeDFATBPseL6gA0YN/wGLxHNTuZ0ZEWgH9E4qanIPYl0zHy/pQY3l6u+ea 6M3VT21ejhSjIM6LjtrAmD3tlSaUucrdGiOVIdWE= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107718] clang optimizes TSVC s317 a lot better Date: Thu, 17 Nov 2022 08:13:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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=3D107718 --- Comment #1 from Richard Biener --- it seems to split the reduction, performing many 0.99 ** n in parallel whic= h is stupid itself as those compute the same result ... I'd say the benchmark is stupid and with -ffast-math we could optimize it to pow (0.99, LEN_1D/2), aka const-fold the inner loop in final value replacem= ent.=