Fix importer spilling in the presence of assignment side effects
authorMike Danes <onemihaid@hotmail.com>
Thu, 13 Sep 2018 19:24:04 +0000 (22:24 +0300)
committerEugene Rozenfeld <erozen@microsoft.com>
Thu, 24 Jan 2019 19:59:47 +0000 (11:59 -0800)
commitcd79ca765ef5b740888abbe1e7e7e76e078884eb
tree0e454ec2d4923c90f3966d7fdd10bb522ece08b2
parent7bac96c2cfdcfe03a71d18ff147059dba795c9f3
Fix importer spilling in the presence of assignment side effects

Atomic ops like GT_CMPXCHG and some HW intrinsic nodes act like assignements so impAppendStmt has to account for them. They can be top level nodes or they can appear in the RHS of a GT_ASG node that perhaps is not considered to have an assignment side effect itself.

Commit migrated from https://github.com/dotnet/coreclr/commit/5ca638f3b25336ae0aa9b3b3edd6b67c11a2533c
src/coreclr/src/jit/importer.cpp
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_19583/GitHub_19583.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_19583/GitHub_19583.csproj [new file with mode: 0644]