[llvm-commits] CVS: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 5 16:21:11 PDT 2003
Changes in directory llvm/lib/Transforms/Utils:
PromoteMemoryToRegister.cpp updated: 1.52 -> 1.53
---
Log message:
Change the interface to PromoteMemToReg to also take a DominatorTree
---
Diffs of the changes:
Index: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
diff -u llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.52 llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.53
--- llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.52 Sun Oct 5 15:54:03 2003
+++ llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp Sun Oct 5 16:20:04 2003
@@ -361,7 +361,8 @@
/// of the function at all. All allocas must be from the same function.
///
void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
- DominanceFrontier &DF, const TargetData &TD) {
+ DominatorTree &DT, DominanceFrontier &DF,
+ const TargetData &TD) {
// If there is nothing to do, bail out...
if (Allocas.empty()) return;
PromoteMem2Reg(Allocas, DF, TD).run();
More information about the llvm-commits
mailing list