JIT: don't self assign to temps (dotnet/coreclr#13484)
authorAndy Ayers <andya@microsoft.com>
Wed, 23 Aug 2017 00:04:02 +0000 (17:04 -0700)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2017 00:04:02 +0000 (17:04 -0700)
commitead4277bdafd6e04d94c212583268dc63db59b1d
treeee2ad9e1828b6de6dddb071c502c0479c729fc9b
parent7d7b46365d36e2daa7ad7359b2846646e114c2c9
JIT: don't self assign to temps (dotnet/coreclr#13484)

Modify gtNewTempAssign to more generally map self-assignment of temps
into nops.

We already were doing something similar over in `impAssignStruct`, and
now we catch non-struct cases too.

Commit migrated from https://github.com/dotnet/coreclr/commit/637bfeffb0fd0378ff6d04d7bb845938b77bdade
src/coreclr/src/jit/gentree.cpp