| 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))
|
|
|