From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 819D63858410; Mon, 8 Apr 2024 12:02:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 819D63858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712577774; bh=Z2BAlFPnV+akiL0EPblUSnZDAmmm1nJ0p9P+WyxBKqE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hHhHyGDkFM+gG1CCAwzN8T9hTD2vodOj5ZsMai/aJ6x/zBup42OpTMUVvd/aBQWqt eLZqI9EPRMjTx1yT0boxoM2DWTTnRMWCQvg0qqPZi7jm8Q5VxXE6iMlbcGf+6HeWnf 6Uf50MoFcsfOapQNTwkcQYyUrXUYehf5fOBB77UY= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114635] OpenMP reductions fail dependency analysis Date: Mon, 08 Apr 2024 12:02:54 +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: missed-optimization 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=3D114635 --- Comment #1 from Richard Biener --- Note even -fopenmp-simd would likely fail if you remove the #if _OPENMP che= ck. -fopenmp-simd doesn't define _OPENMP, only -fopenmp does. It seems to work on x86_64 but we get a "scalar" epilog somehow. As of dependence analysis I can only guess that somehow PTA info is missing and the SIMD decls are addressable for you? Note that I see a masked load and for calls restrict doesn't work.=