aboutsummaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorJoshua Cao <cao.joshua@yahoo.com>2023-04-27 23:43:01 -0700
committerJoshua Cao <cao.joshua@yahoo.com>2023-05-23 21:02:37 -0700
commit0c316f00672ff5968ea9c49663b2449a37ff6715 (patch)
treea2f9a7e4b6300e4e603c33f4f50bdedd2d66c7c6 /polly
parent597dd1f91d9f3823e4184f1fe73d8125fa16c026 (diff)
downloadllvm-0c316f00672ff5968ea9c49663b2449a37ff6715.zip
llvm-0c316f00672ff5968ea9c49663b2449a37ff6715.tar.gz
llvm-0c316f00672ff5968ea9c49663b2449a37ff6715.tar.bz2
[BBUtils][NFC] Delete SplitBlockAndInsertIfThen with DT.
The method is marked for deprecation. Delete the method and move all of its consumers to use the DomTreeUpdater version. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D149428
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/CodeGen/BlockGenerators.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp
index 1c18f2d..4c13364 100644
--- a/polly/lib/CodeGen/BlockGenerators.cpp
+++ b/polly/lib/CodeGen/BlockGenerators.cpp
@@ -20,6 +20,7 @@
#include "polly/Support/ISLTools.h"
#include "polly/Support/ScopHelper.h"
#include "polly/Support/VirtualInstruction.h"
+#include "llvm/Analysis/DomTreeUpdater.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/RegionInfo.h"
#include "llvm/Analysis/ScalarEvolution.h"
@@ -626,8 +627,9 @@ void BlockGenerator::generateConditionalExecution(
StringRef BlockName = HeadBlock->getName();
// Generate the conditional block.
+ DomTreeUpdater DTU(DT, DomTreeUpdater::UpdateStrategy::Eager);
SplitBlockAndInsertIfThen(Cond, &*Builder.GetInsertPoint(), false, nullptr,
- &DT, &LI);
+ &DTU, &LI);
BranchInst *Branch = cast<BranchInst>(HeadBlock->getTerminator());
BasicBlock *ThenBlock = Branch->getSuccessor(0);
BasicBlock *TailBlock = Branch->getSuccessor(1);