Fix `optVNConstantPropOnTree`. (dotnet/coreclr#22865)
authorSergey Andreenko <seandree@microsoft.com>
Wed, 27 Feb 2019 00:58:37 +0000 (16:58 -0800)
committerGitHub <noreply@github.com>
Wed, 27 Feb 2019 00:58:37 +0000 (16:58 -0800)
commit93b478b1d8e4014be5ba713314599e01169dad8e
tree9432efdc73ae54221028bc71c80c1b4c316fe11a
parentf0d31300bb8f35ee579e08230f538ed440b904e4
Fix `optVNConstantPropOnTree`. (dotnet/coreclr#22865)

It should use the same VN that `optVNConstantPropOnTree` uses.

Without this fix `optVNConstantPropOnTree` was doing nothing.

Commit migrated from https://github.com/dotnet/coreclr/commit/6b088eea28220094f2d0023165d30b5e676c20ef
src/coreclr/src/jit/assertionprop.cpp