summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-04-25 17:15:20 +0000
committerDevang Patel <dpatel@apple.com>2007-04-25 17:15:20 +0000
commit073be55d8eeb2bb727b14c53919cda01779ec5c0 (patch)
tree4a7009603eaf454c6582d339d57997b111b5fc77 /llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
parentc7f7b5162f3d92bf25b9aaff73f9191f8afb2659 (diff)
downloadbcm5719-llvm-073be55d8eeb2bb727b14c53919cda01779ec5c0.tar.gz
bcm5719-llvm-073be55d8eeb2bb727b14c53919cda01779ec5c0.zip
Remove unused function argument.
llvm-svn: 36441
Diffstat (limited to 'llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
index 1508fbc5edf..11dca0e05f2 100644
--- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
+++ b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
@@ -52,7 +52,7 @@ struct DenseMapKeyInfo<std::pair<BasicBlock*, unsigned> > {
/// 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 @@ void PromoteMem2Reg::run() {
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!");
OpenPOWER on IntegriCloud