From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 842433858D34; Mon, 10 Jun 2024 06:18:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 842433858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718000333; bh=W3ibQ+zimsoZSCfNV8xd1kpNzxZOI7AIGIkW6IkPi3Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KzHZ17czi7nG/Xx1Dk1+2hhgl2lJ9QMvrxxJPMlUbqcsWrrj09Ie4dExjWJVOaFvZ 1yHez59A5lm3IlmLfM9Wn/oqAi7dEjgyrXSijP+LUbshDwkqXS2jMvgsdNtrAY5KxA IfljmPmscl3NDVLXfXZh4J3TprvDB5Uls6kCT7Cg= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115382] Wrong code with in-order conditional reduction and masked loops Date: Mon, 10 Jun 2024 06:18:53 +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: 15.0 X-Bugzilla-Keywords: wrong-code 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=3D115382 --- Comment #2 from Richard Biener --- I think it should work, but there's also prepare_vec_mask which is using a cache but I have no idea whether this is applicable for non-load/store and whether there's extra work to be done for it to be usable. Richard?=