Changes in directory llvm/lib/Transforms/Utils:
Mem2Reg.cpp updated: 1.24 -> 1.25 PromoteMemoryToRegister.cpp updated: 1.98 -> 1.99 --- Log message: Remove unused function argument. --- Diffs of the changes: (+3 -3) Mem2Reg.cpp | 2 +- PromoteMemoryToRegister.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/lib/Transforms/Utils/Mem2Reg.cpp diff -u llvm/lib/Transforms/Utils/Mem2Reg.cpp:1.24 llvm/lib/Transforms/Utils/Mem2Reg.cpp:1.25 --- llvm/lib/Transforms/Utils/Mem2Reg.cpp:1.24 Fri Apr 20 01:27:13 2007 +++ llvm/lib/Transforms/Utils/Mem2Reg.cpp Wed Apr 25 12:15:20 2007 @@ -70,7 +70,7 @@ // the entry node for (BasicBlock::iterator I = BB.begin(), E = --BB.end(); I != E; ++I) if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca? - if (isAllocaPromotable(AI, TD)) + if (isAllocaPromotable(AI)) Allocas.push_back(AI); if (Allocas.empty()) break; Index: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp diff -u llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.98 llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.99 --- llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.98 Sat Apr 21 02:12:44 2007 +++ llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp Wed Apr 25 12:15:20 2007 @@ -52,7 +52,7 @@ /// isAllocaPromotable - Return true if this alloca is legal for promotion. /// This is true if there are only loads and stores to the alloca. /// -bool llvm::isAllocaPromotable(const AllocaInst *AI, const TargetData &TD) { +bool llvm::isAllocaPromotable(const AllocaInst *AI) { // FIXME: If the memory unit is of pointer or integer type, we can permit // assignments to subsections of the memory unit. @@ -178,7 +178,7 @@ for (unsigned AllocaNum = 0; AllocaNum != Allocas.size(); ++AllocaNum) { AllocaInst *AI = Allocas[AllocaNum]; - assert(isAllocaPromotable(AI, TD) && + assert(isAllocaPromotable(AI) && "Cannot promote non-promotable alloca!"); assert(AI->getParent()->getParent() == &F && "All allocas should be in the same function, which is same as DF!"); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits