https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109143
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:21bf2b2fd99d7a94049610fc2f82db77f725d025 commit r14-1561-g21bf2b2fd99d7a94049610fc2f82db77f725d025 Author: Richard Biener <rguent...@suse.de> Date: Wed May 31 14:28:37 2023 +0200 tree-optimization/109143 - improve PTA compile time The following improves solution_set_expand to require one less iteration over the bitmap and avoid changing the bitmap we iterate over. Plus we handle adjacent subvars in the ID space (the common case) and use bitmap_set_range. This cuts a bit less than 10% off the PTA time from the testcase in the PR. PR tree-optimization/109143 * tree-ssa-structalias.cc (solution_set_expand): Avoid one bitmap iteration and optimize bit range setting.