From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6FF3E385840E; Fri, 22 Mar 2024 13:12:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6FF3E385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711113163; bh=+fj5FZoxv3sICW0YKay3/XMkkN2e2MW+nuCW6vpTt6Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=K4+v7rWe2x27EHilJacQJZoMKkdxsi3XN/SxoEwH3tPbYg17k1KiQzAjI5IWZwfYw 17kfp1mao+FTGcZMCOu63XOpCYwNVxuZ5FghNOeF8kHvuV6QJD0cGPjJJdsxs7jbWT 1z98tHEkgfq7DXxT5wvXHpVLEFeZ9sV10YTFvNIY= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114403] [14 regression] LLVM miscompiled with -O3 -march=znver2 -fno-vect-cost-model since r14-6822-g01f4251b8775c8 Date: Fri, 22 Mar 2024 13:12:42 +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: needs-reduction, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D114403 --- Comment #10 from Sam James --- Created attachment 57774 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57774&action=3Dedit EarlyCSE.cpp.cpp.177t.ch_vect-bad optimize("O2") on `template hash_code hash_combine_range_impl(InputIteratorT first, InputIteratorT last) works,` but O3 is broken. Unfortunately, novector pragmas don't work on the while()s in there. I get a ignored warning. Attached those dumps w/ -fdbg-cnt=3Dvect_loop:7 (so just the one bad loop).= I can tarball up the 6 vs 7 if useful. Thanks. Will try disabling those passes next..=