diff options
Diffstat (limited to 'src/jit/valuenum.cpp')
-rw-r--r-- | src/jit/valuenum.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/jit/valuenum.cpp b/src/jit/valuenum.cpp index fb31d42667..4280d872b0 100644 --- a/src/jit/valuenum.cpp +++ b/src/jit/valuenum.cpp @@ -5923,8 +5923,6 @@ void Compiler::fgValueNumberBlock(BasicBlock* blk) compCurStmtNum = blk->bbStmtNum - 1; // Set compCurStmtNum #endif - unsigned outerLoopNum = BasicBlock::NOT_IN_LOOP; - // First: visit phi's. If "newVNForPhis", give them new VN's. If not, // first check to see if all phi args have the same value. GenTree* firstNonPhi = blk->FirstNonPhiDef(); @@ -7849,7 +7847,6 @@ void Compiler::fgValueNumberTree(GenTree* tree) // can recognize redundant loads with no stores between them. GenTree* addr = tree->AsIndir()->Addr(); GenTreeLclVarCommon* lclVarTree = nullptr; - FieldSeqNode* fldSeq1 = nullptr; FieldSeqNode* fldSeq2 = nullptr; GenTree* obj = nullptr; GenTree* staticOffset = nullptr; @@ -7891,9 +7888,6 @@ void Compiler::fgValueNumberTree(GenTree* tree) ValueNum inxVN = ValueNumStore::NoVN; FieldSeqNode* fldSeq = nullptr; - // GenTree* addr = tree->gtOp.gtOp1; - ValueNum addrVN = addrNvnp.GetLiberal(); - // Try to parse it. GenTree* arr = nullptr; addr->ParseArrayAddress(this, &arrInfo, &arr, &inxVN, &fldSeq); @@ -9749,7 +9743,8 @@ void Compiler::JitTestCheckVN() } // The mapping(s) must be one-to-one: if the label has a mapping, then the ssaNm must, as well. ssize_t num2; - bool b = vnToLabel->Lookup(vn, &num2); + bool found = vnToLabel->Lookup(vn, &num2); + assert(found); // And the mappings must be the same. if (tlAndN.m_num != num2) { |