[PATCH] D72214: [GlobalOpt] Get DT only if it is available.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 09:23:32 PST 2020


fhahn added a comment.

In D72214#1814399 <https://reviews.llvm.org/D72214#1814399>, @ekatz wrote:

> The old PassManager has the function `getAnalysisIfAvailable` that should be used in case you only need to update an analysis (equivalent to `getCachedResult` of the new PassManager). You should probably switch to use this function, instead of the `SmallPtrSet<> DTRequested` technique.


I could not  get `getAnalysisIfAvailable` to get a function level analysis from a module pass. IIUC it only works for function passes.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72214





More information about the llvm-commits mailing list