[PATCH] D77967: [Dominators] Facilitate updates to MachinePostDominatorTree
Carl Ritson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 05:18:12 PDT 2020
critson updated this revision to Diff 257292.
critson added a comment.
Upload correct diff.
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,12 @@
MachinePostDominatorTree();
+ PostDomTreeT &getBase() {
+ if (!PDT)
+ PDT.reset(new PostDomTreeT());
+ return *PDT;
+ }
+
FunctionPass *createMachinePostDominatorTreePass();
const SmallVectorImpl<MachineBasicBlock *> &getRoots() const {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77967.257292.patch
Type: text/x-patch
Size: 517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200414/0e637c60/attachment.bin>
More information about the llvm-commits
mailing list