https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106514
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>: https://gcc.gnu.org/g:8e34d92ef29a175b84cc7f5185db43656ae762bb commit r13-1965-g8e34d92ef29a175b84cc7f5185db43656ae762bb Author: Andrew MacLeod <amacl...@redhat.com> Date: Thu Aug 4 12:22:59 2022 -0400 Loop over intersected bitmaps. compute_ranges_in_block loops over the import list and then checks the same bit in exports. It is nmore efficent to loop over the intersection of the 2 bitmaps. PR tree-optimization/106514 * gimple-range-path.cc (path_range_query::compute_ranges_in_block): Use EXECUTE_IF_AND_IN_BITMAP to loop over 2 bitmaps.