https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87609
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 45787 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45787&action=edit first part of a fix This makes PTA always populate (and overwrite) CLIQUE == 1, partitioning cliques into "function local" ones (just CLIQUE == 1) and ones introduced to the function via inlining (CLIQUE > 1) - those have narrower scope than the function and thus we may have to remap them whenever we copy a stmt.