An UnusedValue still requires a target reg (dotnet/coreclr#18561)
authorCarol Eidt <carol.eidt@microsoft.com>
Wed, 20 Jun 2018 21:55:12 +0000 (14:55 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Jun 2018 21:55:12 +0000 (14:55 -0700)
commit02530c74c4e369ca4e6f6208192c94d1ab628583
treef86032cda259a4508c673d881b5f6f7bc3fd7880
parent36e263418df0ae4db8bcad28a4f9bba88cd7c1c9
An UnusedValue still requires a target reg (dotnet/coreclr#18561)

* An UnusedValue still requires a target reg

The BuildSimple method wasn't creating a def for an unused value. Although (in this case) the code is dead, the code generator must still be able to generate code for it.

* Add test case for dotnet/coreclr#18295 to arm/arm64 tests.lst

Commit migrated from https://github.com/dotnet/coreclr/commit/0c95349ef5ee360dc92a51632e7a4210cb4053da
src/coreclr/src/jit/lsrabuild.cpp
src/coreclr/tests/arm/Tests.lst
src/coreclr/tests/arm64/Tests.lst
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_18295/GitHub_18295.il [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_18295/GitHub_18295.ilproj [new file with mode: 0644]