Technically PR 111622 exposes a bug in GCC 13, but its been papered over on trunk by this:

commit 9ea74d235c7e7816b996a17c61288f02ef767985
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Sep 14 09:31:23 2023 +0200
tree-optimization/111294 - better DCE after forwprop

This removes a lot of dead statements, but those statements were being added to the list of partial equivalences and causing some serious compile time issues.

Rangers cache loops through equivalences when its propagating on-entry values, so if the partial equivalence list is very large, it can consume a lot of time.  Typically, partial equivalence lists are small.   In this case, a lot of dead stmts were not removed, so there was no redundancy elimination and it was causing an issue.   This patch actually speeds things up a hair in the normal case too.

Bootstrapped on x86_64-pc-linux-gnu with no regressions.  pushed.

Andrew



Reply via email to