summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LICM.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-11-23 03:50:44 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-11-23 03:50:44 +0000
commit15a1287c1f3ba993028f0f37c3ef0adc08287719 (patch)
treeaa942786785d9c691b95cb42e9fabda7b12902f8 /llvm/lib/Transforms/Scalar/LICM.cpp
parent621fe5614e032fe231ff18304876af0d33c4fe6e (diff)
downloadbcm5719-llvm-15a1287c1f3ba993028f0f37c3ef0adc08287719.tar.gz
bcm5719-llvm-15a1287c1f3ba993028f0f37c3ef0adc08287719.zip
Pull LLVMContext out of PromoteMemToReg.
llvm-svn: 89645
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LICM.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LICM.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index a71b3e31e26..5511387c8da 100644
--- a/llvm/lib/Transforms/Scalar/LICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -593,7 +593,7 @@ void LICM::sink(Instruction &I) {
if (AI) {
std::vector<AllocaInst*> Allocas;
Allocas.push_back(AI);
- PromoteMemToReg(Allocas, *DT, *DF, AI->getContext(), CurAST);
+ PromoteMemToReg(Allocas, *DT, *DF, CurAST);
}
}
}
@@ -769,7 +769,7 @@ void LICM::PromoteValuesInLoop() {
PromotedAllocas.reserve(PromotedValues.size());
for (unsigned i = 0, e = PromotedValues.size(); i != e; ++i)
PromotedAllocas.push_back(PromotedValues[i].first);
- PromoteMemToReg(PromotedAllocas, *DT, *DF, Preheader->getContext(), CurAST);
+ PromoteMemToReg(PromotedAllocas, *DT, *DF, CurAST);
}
/// FindPromotableValuesInLoop - Check the current loop for stores to definite
OpenPOWER on IntegriCloud