aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-18 02:39:37 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-18 02:39:37 +0000
commit32c52c7e042de55dd6476a0bb6ee3e914c3ead3a (patch)
treebb447aa31a7587bfc6fbf877cec0f1d89ab53903 /llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
parent4da5edbebededc48d9c523a869982f1ebba3e57b (diff)
downloadllvm-32c52c7e042de55dd6476a0bb6ee3e914c3ead3a.zip
llvm-32c52c7e042de55dd6476a0bb6ee3e914c3ead3a.tar.gz
llvm-32c52c7e042de55dd6476a0bb6ee3e914c3ead3a.tar.bz2
[PM] Sink the specific analyses preserved by SplitBlock into its
interface, removing Pass from its interface. This also makes those analyses optional so that passes which don't even preserve these (or use them) can skip the logic entirely. llvm-svn: 226394
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnswitch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
index eb684d4..0ff6e01 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -737,7 +737,7 @@ void LoopUnswitch::UnswitchTrivialCondition(Loop *L, Value *Cond,
// without actually branching to it (the exit block should be dominated by the
// loop header, not the preheader).
assert(!L->contains(ExitBlock) && "Exit block is in the loop?");
- BasicBlock *NewExit = SplitBlock(ExitBlock, ExitBlock->begin(), this);
+ BasicBlock *NewExit = SplitBlock(ExitBlock, ExitBlock->begin(), DT, LI);
// Okay, now we have a position to branch from and a position to branch to,
// insert the new conditional branch.