Update conservative value numbers during CSE
authorJoseph Tremoulet <jotrem@microsoft.com>
Tue, 7 Feb 2017 19:43:29 +0000 (11:43 -0800)
committerJoseph Tremoulet <jotrem@microsoft.com>
Thu, 9 Feb 2017 18:00:34 +0000 (10:00 -0800)
commit4641b56bc030516b199b499e8bfa77877e31b850
treeebfba0bc2248a2453ea9232fdd86a64936784a2a
parent28d04376fe54aea392d75d478bd468f14d134e67
Update conservative value numbers during CSE

When a CSE candidate's defs all share the same conservative value number,
its uses can be updated to share that conservative value number as well
when CSE is performed, because we are removing any reloads that may have
been the cause of the divergence.  Performing this update can improve
subsequent range check elimination when the CSE use is array length or
index in a bounds check.
src/jit/compiler.h
src/jit/optcse.cpp