Refactor fgCurHeapVN and HeapSsaMap updates
authorJoseph Tremoulet <jotrem@microsoft.com>
Fri, 13 Jan 2017 17:29:37 +0000 (12:29 -0500)
committerJoseph Tremoulet <jotrem@microsoft.com>
Wed, 8 Feb 2017 14:32:46 +0000 (09:32 -0500)
commit5501ecb0855f295c0c60c3743c440badd5d67d61
tree0c19e55bdb6c3c796606490c7c91b4088ddd4d1c
parenteaa168845c45bb465953a61e038f8afd88c27206
Refactor fgCurHeapVN and HeapSsaMap updates

Consolodate the code for updating the current heap VN and HeapSsaMap
entries into new helper method `recordHeapStore`, to make it easier to
evolve that code.  Change `fgValueNumberArrIndexAssign` to return the new
heap VN to allow callers to pass it down into `recordHeapStore`
accordingly.

This is just a refactoring; no change to compiler behavior.
src/jit/compiler.h
src/jit/valuenum.cpp