summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.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/PartiallyInlineLibCalls.cpp
parent4da5edbebededc48d9c523a869982f1ebba3e57b (diff)
downloadbcm5719-llvm-32c52c7e042de55dd6476a0bb6ee3e914c3ead3a.tar.gz
bcm5719-llvm-32c52c7e042de55dd6476a0bb6ee3e914c3ead3a.zip
[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/PartiallyInlineLibCalls.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp b/llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
index 0ca715337e0..d6adfbea5d4 100644
--- a/llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
+++ b/llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
@@ -127,7 +127,7 @@ bool PartiallyInlineLibCalls::optimizeSQRT(CallInst *Call,
// Move all instructions following Call to newly created block JoinBB.
// Create phi and replace all uses.
- BasicBlock *JoinBB = llvm::SplitBlock(&CurrBB, Call->getNextNode(), this);
+ BasicBlock *JoinBB = llvm::SplitBlock(&CurrBB, Call->getNextNode());
IRBuilder<> Builder(JoinBB, JoinBB->begin());
PHINode *Phi = Builder.CreatePHI(Call->getType(), 2);
Call->replaceAllUsesWith(Phi);
OpenPOWER on IntegriCloud