From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 855493858D32; Mon, 8 Apr 2024 14:55:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 855493858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712588108; bh=qUIxDG88xDj58+QPi57J/wJA7UOEAZKmMurdYf3W2xY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W4n0iMkFwLgvThV+Q32lzvJBN07HzKOOw+7SZmVMGjaykkH2lFyVjpOwP0doG7LdQ mEvkdRq6xT0y2KJGd6tKpKW+Z6cykc3SJIrylACTnHg4s2BEGlmKLaPGIka/rq06C5 cmHhzz0tGJRiXjJpGNjYXtKbB+GimV3jxgdTxIlI= From: "tnfchris 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 14:55:08 +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, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris 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 #6 from Tamar Christina --- (In reply to Jakub Jelinek from comment #4) > Now, with SVE/RISCV vectors the actual vectorization factor is a poly_int > rather than constant. One possibility would be to use VLA arrays in those > cases, but then it will be hard to undo that later, or allow both shrinki= ng > and growing the arrays and even turning them into VLA-like ones. I think they are already VLAs of some kind going into vect, unless I've misunderstood the declaration: float D.28295[0:POLY_INT_CST [15, 16]]; float D.28293[0:POLY_INT_CST [15, 16]]; float D.28290[0:POLY_INT_CST [15, 16]]; it looks like during vectorization they are lowered though.=