https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92264
--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> --- Note also that param_max_find_base_term_values limits recursion depth but not width (the loc list traversals). The original visited_vals thing was to prevent infinite recursion only. If the global caching works a safer approach would be to turn that visited_vals things into a local cache and see if that's enough as well.