Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: src/IceRegAlloc.cpp

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceRegAlloc.cpp
diff --git a/src/IceRegAlloc.cpp b/src/IceRegAlloc.cpp
index 400cb7de34095d1ea2ef72b7b32873ca2fcbe50c..64234776bdca78491d4b7734c5d8d43d679a579b 100644
--- a/src/IceRegAlloc.cpp
+++ b/src/IceRegAlloc.cpp
@@ -178,8 +178,8 @@ void LinearScan::initForInfOnly() {
}
for (SizeT I = 0; I < Inst.getSrcSize(); ++I) {
Operand *Src = Inst.getSrc(I);
- SizeT NumVars = Src->getNumVars();
- for (SizeT J = 0; J < NumVars; ++J) {
+ SizeT NVars = Src->getNumVars();
+ for (SizeT J = 0; J < NVars; ++J) {
const Variable *Var = Src->getVar(J);
if (Var->hasReg() || Var->getWeight().isInf())
LREnd[Var->getIndex()] = Inst.getNumber();
@@ -675,7 +675,7 @@ void LinearScan::scan(const llvm::SmallBitVector &RegMaskFull,
}
}
}
- dump(Func);
+ dump();
}
// Move anything Active or Inactive to Handled for easier handling.
for (Variable *I : Active)
@@ -684,7 +684,7 @@ void LinearScan::scan(const llvm::SmallBitVector &RegMaskFull,
for (Variable *I : Inactive)
Handled.push_back(I);
Inactive.clear();
- dump(Func);
+ dump();
llvm::SmallVector<int32_t, REGS_SIZE> Permutation(NumRegisters);
if (Randomized) {
@@ -736,7 +736,7 @@ void LinearScan::scan(const llvm::SmallBitVector &RegMaskFull,
// ======================== Dump routines ======================== //
-void LinearScan::dump(Cfg *Func) const {
+void LinearScan::dump() const {
if (!BuildDefs::dump())
return;
if (!Func->isVerbose(IceV_LinearScan))
« src/IceInst.h ('K') | « src/IceRegAlloc.h ('k') | src/IceRegistersX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698