https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104203
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:58ec0964b1d2f2ab197916cd661728f6a7a1736b commit r12-6869-g58ec0964b1d2f2ab197916cd661728f6a7a1736b Author: Martin Sebor <mse...@redhat.com> Date: Tue Jan 25 14:20:51 2022 -0700 Avoid recomputing PHI results after failure (PR104203). Resolves: PR tree-optimization/104203 - huge compile-time regression in pointer_query gcc/ChangeLog: PR tree-optimization/104203 * gimple-ssa-warn-access.cc (pass_data pass_data_waccess): Use TV_WARN_ACCESS. * pointer-query.cc (access_ref::merge_ref): Change return type. Convert failure to a conservative success. (access_ref::get_ref): Adjust to the change above. Short-circuit PHI evaluation after first failure turned into conservative success. * pointer-query.h (access_ref::merge_ref): Change return type. * timevar.def (TV_WARN_ACCESS): New timer variable.