https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125040
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:7b5a05667c8e40bec5e070b1638d3b3882f7c78e commit r17-2045-g7b5a05667c8e40bec5e070b1638d3b3882f7c78e Author: Richard Biener <[email protected]> Date: Fri Jun 26 16:31:26 2026 +0200 tree-optimization/125040 - fix sorted_array_from_bitmap_set The function attempts to provide a topological sorting of expressions in a bitmap set but it fails short of that because we have no knowledge of the entries of the value graph. The following makes sure to first compute those. This should reduce the amount of iteration we do. PR tree-optimization/125040 * tree-ssa-pre.cc (sorted_array_from_bitmap_set): Compute the set of entries to the value graph before building the final sorted expression set.
