diff options
author | Sergey Andreenko <seandree@microsoft.com> | 2017-07-11 10:36:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-11 10:36:37 -0700 |
commit | 826e4dbd420833a76f5a03189fcf997bda7e969f (patch) | |
tree | e8f0acc0d9cd1faa96b23a0fa86d8810046c810f /src/jit/regalloc.cpp | |
parent | 50989bbb8410e517db886cc3c039c0a98505b774 (diff) | |
download | coreclr-826e4dbd420833a76f5a03189fcf997bda7e969f.tar.gz coreclr-826e4dbd420833a76f5a03189fcf997bda7e969f.tar.bz2 coreclr-826e4dbd420833a76f5a03189fcf997bda7e969f.zip |
Delete bitset iterators defines (#12642)
Delete BLOCKSET_ITER_INIT
Rename blkNum to bbNum.
We usually use bbNum (basic block number), rather than blkNum(block
number).
This change allows to grep for iterator and etc easier.
Delete BITVEC_ITER_INIT and BITVEC_INIT_NOCOPY.
Delete VARSET_ITER_INIT.
Rename some variables around varSet iterators.
Diffstat (limited to 'src/jit/regalloc.cpp')
-rw-r--r-- | src/jit/regalloc.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/jit/regalloc.cpp b/src/jit/regalloc.cpp index 8403232b67..8280503795 100644 --- a/src/jit/regalloc.cpp +++ b/src/jit/regalloc.cpp @@ -985,7 +985,8 @@ bool Compiler::rpRecordRegIntf(regMaskTP regMask, VARSET_VALARG_TP life DEBUGARG #ifdef DEBUG if (verbose) { - VARSET_ITER_INIT(this, newIntfIter, newIntf, varNum); + VarSetOps::Iter newIntfIter(this, newIntf); + unsigned varNum = 0; while (newIntfIter.NextElem(&varNum)) { unsigned lclNum = lvaTrackedToVarNum[varNum]; @@ -1335,8 +1336,9 @@ RET: // While we still have any lastUse or inPlaceUse bits VARSET_TP useUnion(VarSetOps::Union(this, lastUse, inPlaceUse)); - VARSET_TP varAsSet(VarSetOps::MakeEmpty(this)); - VARSET_ITER_INIT(this, iter, useUnion, varNum); + VARSET_TP varAsSet(VarSetOps::MakeEmpty(this)); + VarSetOps::Iter iter(this, useUnion); + unsigned varNum = 0; while (iter.NextElem(&varNum)) { // We'll need this for one of the calls... @@ -5654,7 +5656,8 @@ regMaskTP Compiler::rpPredictAssignRegVars(regMaskTP regAvail) // psc is abbeviation for possibleSameColor VARSET_TP pscVarSet(VarSetOps::Diff(this, unprocessedVars, lvaVarIntf[varIndex])); - VARSET_ITER_INIT(this, pscIndexIter, pscVarSet, pscIndex); + VarSetOps::Iter pscIndexIter(this, pscVarSet); + unsigned pscIndex = 0; while (pscIndexIter.NextElem(&pscIndex)) { LclVarDsc* pscVar = lvaTable + lvaTrackedToVarNum[pscIndex]; @@ -5736,8 +5739,9 @@ regMaskTP Compiler::rpPredictAssignRegVars(regMaskTP regAvail) #ifdef _TARGET_ARM_ if (isDouble) { - regNumber secondHalf = REG_NEXT(regNum); - VARSET_ITER_INIT(this, iter, lvaVarIntf[varIndex], intfIndex); + regNumber secondHalf = REG_NEXT(regNum); + VarSetOps::Iter iter(this, lvaVarIntf[varIndex]); + unsigned intfIndex = 0; while (iter.NextElem(&intfIndex)) { VarSetOps::AddElemD(this, raLclRegIntf[secondHalf], intfIndex); |