[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LICM.cpp ScalarReplAggregates.cpp
Devang Patel
dpatel at apple.com
Wed Apr 25 11:33:03 PDT 2007
Changes in directory llvm/lib/Transforms/Scalar:
LICM.cpp updated: 1.95 -> 1.96
ScalarReplAggregates.cpp updated: 1.89 -> 1.90
---
Log message:
Mem2Reg does not need TargetData.
---
Diffs of the changes: (+3 -4)
LICM.cpp | 4 ++--
ScalarReplAggregates.cpp | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
Index: llvm/lib/Transforms/Scalar/LICM.cpp
diff -u llvm/lib/Transforms/Scalar/LICM.cpp:1.95 llvm/lib/Transforms/Scalar/LICM.cpp:1.96
--- llvm/lib/Transforms/Scalar/LICM.cpp:1.95 Tue Apr 24 01:40:39 2007
+++ llvm/lib/Transforms/Scalar/LICM.cpp Wed Apr 25 13:32:35 2007
@@ -555,7 +555,7 @@
if (AI) {
std::vector<AllocaInst*> Allocas;
Allocas.push_back(AI);
- PromoteMemToReg(Allocas, *ET, *DF, AA->getTargetData(), CurAST);
+ PromoteMemToReg(Allocas, *ET, *DF, CurAST);
}
}
}
@@ -736,7 +736,7 @@
PromotedAllocas.reserve(PromotedValues.size());
for (unsigned i = 0, e = PromotedValues.size(); i != e; ++i)
PromotedAllocas.push_back(PromotedValues[i].first);
- PromoteMemToReg(PromotedAllocas, *ET, *DF, AA->getTargetData(), CurAST);
+ PromoteMemToReg(PromotedAllocas, *ET, *DF, CurAST);
}
/// FindPromotableValuesInLoop - Check the current loop for stores to definite
Index: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff -u llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.89 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.90
--- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.89 Wed Apr 25 12:15:20 2007
+++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp Wed Apr 25 13:32:35 2007
@@ -104,7 +104,6 @@
bool SROA::performPromotion(Function &F) {
std::vector<AllocaInst*> Allocas;
- const TargetData &TD = getAnalysis<TargetData>();
ETForest &ET = getAnalysis<ETForest>();
DominanceFrontier &DF = getAnalysis<DominanceFrontier>();
@@ -124,7 +123,7 @@
if (Allocas.empty()) break;
- PromoteMemToReg(Allocas, ET, DF, TD);
+ PromoteMemToReg(Allocas, ET, DF);
NumPromoted += Allocas.size();
Changed = true;
}
More information about the llvm-commits
mailing list