[PATCH] D72214: [GlobalOpt] Get DT only if it is available.
Ehud Katz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 10 10:22:18 PST 2020
ekatz added a comment.
In D72214#1814403 <https://reviews.llvm.org/D72214#1814403>, @fhahn wrote:
> I could not get `getAnalysisIfAvailable` to get a function level analysis from a module pass. IIUC it only works for function passes.
And I guess adding this functionality to the Legacy PassManager is too much, for something that is going to be removed anyway.
Then the solution (in the patch) seems legit.
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