[PATCH] D43173: [CallSiteSplitting] Preserve DominatorTreeAnalysis.
Daniel Berlin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 10:18:29 PST 2018
dberlin added a comment.
Please use getAnalysisIfAvailable for the old pass manager
Please use getCachedResult for the new pass manager.
That is the correct way to "get an analysis if it is sitting around so we can update it".
The way you've done it now will actually calculate DT if it's not calculated already.
Repository:
rL LLVM
https://reviews.llvm.org/D43173
More information about the llvm-commits
mailing list