mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 22:50:47 +00:00
Remove unused function argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
65e203d713
commit
41968df51e
@ -28,7 +28,7 @@ class AliasSetTracker;
|
||||
/// isAllocaPromotable - Return true if this alloca is legal for promotion.
|
||||
/// This is true if there are only loads and stores to the alloca...
|
||||
///
|
||||
bool isAllocaPromotable(const AllocaInst *AI, const TargetData &TD);
|
||||
bool isAllocaPromotable(const AllocaInst *AI);
|
||||
|
||||
/// PromoteMemToReg - Promote the specified list of alloca instructions into
|
||||
/// scalar registers, inserting PHI nodes as appropriate. This function makes
|
||||
|
@ -119,7 +119,7 @@ bool SROA::performPromotion(Function &F) {
|
||||
// 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;
|
||||
|
@ -70,7 +70,7 @@ bool PromotePass::runOnFunction(Function &F) {
|
||||
// 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;
|
||||
|
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user