From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 21E353858D32; Sun, 14 Aug 2022 22:08:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21E353858D32 From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106617] [13 Regression] gcc is very slow at ternary expressions, Date: Sun, 14 Aug 2022 22:08:18 +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: 13.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox 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 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: Sun, 14 Aug 2022 22:08:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106617 --- Comment #3 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #2) > (In reply to Andrew Pinski from comment #1) > > I doubt this is a regression. I suspect if you compile the trunk with > > --enable-checking=3Drelease you would see the same compile time as 12. >=20 > I think both my gcc-12.1.0 and gcc-13.0.0 are compiled with the same opti= ons > (both are without --enable-checking=3D option). My unsubstantiated guess = would > be on recently added rules to fold & (or similar) which does not scale too > well on long strings of ternary operators. Oh, only now I realized snapshots have a different default compared to rele= ases proper. I'll add --enable-checking=3Drelease and re-test.=