[polly] r250606 - Drop unused parameter from handleOutsideUsers
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 17 01:25:57 PDT 2015
Author: grosser
Date: Sat Oct 17 03:25:54 2015
New Revision: 250606
URL: http://llvm.org/viewvc/llvm-project?rev=250606&view=rev
Log:
Drop unused parameter from handleOutsideUsers
Modified:
polly/trunk/include/polly/CodeGen/BlockGenerators.h
polly/trunk/lib/CodeGen/BlockGenerators.cpp
Modified: polly/trunk/include/polly/CodeGen/BlockGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/BlockGenerators.h?rev=250606&r1=250605&r2=250606&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/BlockGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/BlockGenerators.h Sat Oct 17 03:25:54 2015
@@ -369,10 +369,8 @@ protected:
///
/// @param R The current SCoP region.
/// @param Inst The current instruction we check.
- /// @param InstCopy The copy of the instruction @p Inst in the optimized
- /// SCoP.
/// @param Address If given it is used as the escape address for @p Inst.
- void handleOutsideUsers(const Region &R, Instruction *Inst, Value *InstCopy,
+ void handleOutsideUsers(const Region &R, Instruction *Inst,
Value *Address = nullptr);
/// @brief Initialize the memory of demoted scalars.
Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=250606&r1=250605&r2=250606&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Sat Oct 17 03:25:54 2015
@@ -315,7 +315,7 @@ void BlockGenerator::copyBB(ScopStmt &St
const Region &R = Stmt.getParent()->getRegion();
for (Instruction &Inst : *BB)
- handleOutsideUsers(R, &Inst, BBMap[&Inst]);
+ handleOutsideUsers(R, &Inst);
}
Value *BlockGenerator::getOrCreateAlloca(Value *ScalarBase,
@@ -354,7 +354,7 @@ Value *BlockGenerator::getOrCreatePHIAll
}
void BlockGenerator::handleOutsideUsers(const Region &R, Instruction *Inst,
- Value *InstCopy, Value *Address) {
+ Value *Address) {
// If there are escape users we get the alloca for this instruction and put it
// in the EscapeMap for later finalization. Lastly, if the instruction was
// copied multiple times we already did this and can exit.
@@ -585,8 +585,7 @@ void BlockGenerator::finalizeSCoP(Scop &
assert(PHI->getNumUses() == 1);
assert(ScalarMap.count(PHI->user_back()));
- handleOutsideUsers(S.getRegion(), PHI, nullptr,
- ScalarMap[PHI->user_back()]);
+ handleOutsideUsers(S.getRegion(), PHI, ScalarMap[PHI->user_back()]);
}
}
More information about the llvm-commits
mailing list