[PATCH] D139872: [llvm][CallBrPrepare] split critical edges
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 12 16:12:28 PST 2022
nickdesaulniers added inline comments.
================
Comment at: llvm/lib/CodeGen/CallBrPrepare.cpp:128-129
+
+ auto *DTWP = getAnalysisIfAvailable<DominatorTreeWrapperPass>();
+ DominatorTree *DT = DTWP ? &DTWP->getDomTree() : nullptr;
+
----------------
aeubanks wrote:
> nickdesaulniers wrote:
> > @aeubanks does this look correct?
> yup, lg
Oh, I guess later on (in a later commit) I will need to query `DT.dominates`. If DOM tree info isn't available, wat do?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139872/new/
https://reviews.llvm.org/D139872
More information about the llvm-commits
mailing list