[PATCH] D100917: [NewPM] Only invalidate modified functions' analyses in CGSCC passes

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 21 11:36:16 PDT 2021


aeubanks added a comment.

It seems awkward to enhance PreservedAnalyses to only apply to specific functions when this patch is explicitly doing exactly what we want. If you have a clean way of modeling this inside PreservedAnalyses I'm happy to go with that, but so far I think this is the cleanest way.
Passes were already directly managing the analysis managers, e.g. the inliner and argpromo would remove entries for deleted functions. And `updateCGAndAnalysisManager()` would also handle analysis manager updates.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100917/new/

https://reviews.llvm.org/D100917



More information about the llvm-commits mailing list