[ARM] Set local variables as addr-exposed (for LEGACY_BACKEND) (dotnet/coreclr#12237)
authorJonghyun Park <parjong@gmail.com>
Fri, 16 Jun 2017 15:50:43 +0000 (00:50 +0900)
committerBruce Forstall <brucefo@microsoft.com>
Fri, 16 Jun 2017 15:50:43 +0000 (08:50 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/16d58b4e2555a8efadba07b57f763f4d7e9a7423

src/coreclr/src/jit/morph.cpp

index 5910206..18c570b 100644 (file)
@@ -10327,7 +10327,6 @@ GenTreePtr Compiler::fgMorphCopyBlock(GenTreePtr tree)
 
             tree = gtNewAssignNode(gtNewLclvNode(addrSpillTemp, TYP_BYREF), addrSpill);
 
-#ifndef LEGACY_BACKEND
             // If we are assigning the address of a LclVar here
             // liveness does not account for this kind of address taken use.
             //
@@ -10345,7 +10344,6 @@ GenTreePtr Compiler::fgMorphCopyBlock(GenTreePtr tree)
                     lvaSetVarDoNotEnregister(lclVarNum DEBUGARG(DNER_AddrExposed));
                 }
             }
-#endif // !LEGACY_BACKEND
         }
 
     _AssignFields: