Clear heap PerSsaData, heapSsaMap in fgResetForSsa
authorJoseph Tremoulet <jotrem@microsoft.com>
Fri, 30 Sep 2016 19:18:55 +0000 (15:18 -0400)
committerJoseph Tremoulet <jotrem@microsoft.com>
Fri, 4 Nov 2016 18:57:06 +0000 (14:57 -0400)
These need to be cleared for the same reasons as the locals' PerSsaData;
their omission seems to be a simple oversight.

Commit migrated from https://github.com/dotnet/coreclr/commit/eed63a7901ac0fe886f5a85cafbf0db62991ec91

src/coreclr/src/jit/ssabuilder.cpp

index 7968b5e..13486bc 100644 (file)
@@ -103,6 +103,8 @@ void Compiler::fgResetForSsa()
     {
         lvaTable[i].lvPerSsaData.Reset();
     }
+    lvHeapPerSsaData.Reset();
+    m_heapSsaMap = nullptr;
     for (BasicBlock* blk = fgFirstBB; blk != nullptr; blk = blk->bbNext)
     {
         // Eliminate phis.