Use field type value-numbering local field stores
authorJoseph Tremoulet <jotrem@microsoft.com>
Tue, 20 Dec 2016 18:23:58 +0000 (10:23 -0800)
committerJoseph Tremoulet <jotrem@microsoft.com>
Tue, 20 Dec 2016 18:23:58 +0000 (10:23 -0800)
commitc6c5dc7ea3aa88e261b3c097fad358144281f6b8
treee40f7458cfd4116b5896506482c3a19d5659fdc2
parent1beb81f713eaaeddd18dda9fae517051ecd00268
Use field type value-numbering local field stores

Method `VNPairApplySelectorsAssign` takes the type of the value being
assigned, so when processing a store to a field of a local struct, pass
the type of the field rather than the type of the local; failure to do so
was blocking propagation of the value number to subsequent loads of the
same field due to the type mismatch.

Commit migrated from https://github.com/dotnet/coreclr/commit/ae3f036d1527dddc399a15da6151661143e2948a
src/coreclr/src/jit/valuenum.cpp