From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 367853857C49; Sat, 25 Jul 2020 12:37:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 367853857C49 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595680660; bh=wIsRmru0tqQIGUaNkni+uX5Mwo7eRSHkR8xU6W4Uu30=; h=From:To:Subject:Date:In-Reply-To:References:From; b=L9+Lvb+DarhE5VVc32str2NlVRLKGlZ3ZAnoBsOqUBMYeHIWcwLhk4BQWSlqSp1RT /U55AO6edNQWl2X4cuFZf1ygS718IGihg6ylhu0T07H5u+oMiJPHQNsCjmu1vvRwNz A2EZm5Iv5viuD6B739KQD67b/TRxhNOG2yGhMDZQ= From: "tobi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/95859] [10/11 regression] Statically true asserts not recognized as such with -O2, but with -O1, -Og, -O3 Date: Sat, 25 Jul 2020 12:37:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: tobi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2020 12:37:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95859 Tobias Schl=C3=BCter changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #48779|0 |1 is obsolete| | --- Comment #8 from Tobias Schl=C3=BCter --- Created attachment 48927 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48927&action=3Dedit Reduced testcase (32bit, preprocessed). I've further reduced the testcase down to 800Kb. Again this is with -m32. = I removed the definition of void Eigen::internal::check_for_aliasing, so this will appear in the assembly, but it's a no-op. New version attached, compiler explorer version here https://godbolt.org/z/h6YMeq I've also reproduced the bug with 10.2=