summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-22 15:01:41 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-22 15:01:41 +0000
commit65b4ab9921364d27eb0c4704d8259b22b0cdc53e (patch)
tree6d5354819232d56e92c6c66c03e9d0acc15fdc8e /llvm/include
parent6083106b1216566f189ecb6e0ae0340b61c4254a (diff)
downloadbcm5719-llvm-65b4ab9921364d27eb0c4704d8259b22b0cdc53e.tar.gz
bcm5719-llvm-65b4ab9921364d27eb0c4704d8259b22b0cdc53e.zip
BreakCriticalEdges: Update PostDominatorTree
llvm-svn: 354673
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h b/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
index e997ed0cc0f..a7bbe2856c5 100644
--- a/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
+++ b/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
@@ -35,6 +35,7 @@ class LoopInfo;
class MDNode;
class MemoryDependenceResults;
class MemorySSAUpdater;
+class PostDominatorTree;
class ReturnInst;
class TargetLibraryInfo;
class Value;
@@ -103,6 +104,7 @@ void ReplaceInstWithInst(Instruction *From, Instruction *To);
/// during critical edge splitting.
struct CriticalEdgeSplittingOptions {
DominatorTree *DT;
+ PostDominatorTree *PDT;
LoopInfo *LI;
MemorySSAUpdater *MSSAU;
bool MergeIdenticalEdges = false;
@@ -111,8 +113,9 @@ struct CriticalEdgeSplittingOptions {
CriticalEdgeSplittingOptions(DominatorTree *DT = nullptr,
LoopInfo *LI = nullptr,
- MemorySSAUpdater *MSSAU = nullptr)
- : DT(DT), LI(LI), MSSAU(MSSAU) {}
+ MemorySSAUpdater *MSSAU = nullptr,
+ PostDominatorTree *PDT = nullptr)
+ : DT(DT), PDT(PDT), LI(LI), MSSAU(MSSAU) {}
CriticalEdgeSplittingOptions &setMergeIdenticalEdges() {
MergeIdenticalEdges = true;
OpenPOWER on IntegriCloud