[PATCH] D77967: [Dominators] Facilitate updates to MachinePostDominatorTree
Carl Ritson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 04:13:29 PDT 2020
critson updated this revision to Diff 257274.
critson added a comment.
Simplify the change set to bare minimum required.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77967/new/
https://reviews.llvm.org/D77967
Files:
llvm/include/llvm/CodeGen/MachinePostDominators.h
Index: llvm/include/llvm/CodeGen/MachinePostDominators.h
===================================================================
--- llvm/include/llvm/CodeGen/MachinePostDominators.h
+++ llvm/include/llvm/CodeGen/MachinePostDominators.h
@@ -33,6 +33,11 @@
MachinePostDominatorTree();
+ PostDomTreeT &getBase() {
+ if (!DT) DT.reset(new PostDomTreeT());
+ return *DT;
+ }
+
FunctionPass *createMachinePostDominatorTreePass();
const SmallVectorImpl<MachineBasicBlock *> &getRoots() const {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77967.257274.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200414/e404b401/attachment.bin>
More information about the llvm-commits
mailing list