diff options
author | Joseph Tremoulet <JCTremoulet@gmail.com> | 2016-12-20 16:01:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 16:01:44 -0500 |
commit | 6077c153dafab92f295aa89ac62278a06c536a95 (patch) | |
tree | 8633423209f32db91b527cc8c5e9310cd4f9ebc1 /src | |
parent | c5abe8c5a3d74b8417378e03f560fd54799c17f2 (diff) | |
parent | ae3f036d1527dddc399a15da6151661143e2948a (diff) | |
download | coreclr-6077c153dafab92f295aa89ac62278a06c536a95.tar.gz coreclr-6077c153dafab92f295aa89ac62278a06c536a95.tar.bz2 coreclr-6077c153dafab92f295aa89ac62278a06c536a95.zip |
Merge pull request #8693 from JosephTremoulet/ValueNumberField
Use field type value-numbering local field stores
Diffstat (limited to 'src')
-rw-r--r-- | src/jit/valuenum.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/jit/valuenum.cpp b/src/jit/valuenum.cpp index c67611f690..f7cc0c9a23 100644 --- a/src/jit/valuenum.cpp +++ b/src/jit/valuenum.cpp @@ -5640,10 +5640,9 @@ void Compiler::fgValueNumberTree(GenTreePtr tree, bool evalAsgLhsInd) // (we looked in a side table above for its "def" identity). Look up that value. ValueNumPair oldLhsVNPair = lvaTable[lclFld->GetLclNum()].GetPerSsaData(lclFld->GetSsaNum())->m_vnPair; - newLhsVNPair = - vnStore->VNPairApplySelectorsAssign(oldLhsVNPair, lclFld->gtFieldSeq, - rhsVNPair, // Pre-value. - lvaGetActualType(lclFld->gtLclNum), compCurBB); + newLhsVNPair = vnStore->VNPairApplySelectorsAssign(oldLhsVNPair, lclFld->gtFieldSeq, + rhsVNPair, // Pre-value. + lclFld->TypeGet(), compCurBB); } } lvaTable[lclFld->GetLclNum()].GetPerSsaData(lclDefSsaNum)->m_vnPair = newLhsVNPair; |