JIT: Remove double-{negation,not} in during morph phase (#32000)
authordamageboy <125730+damageboy@users.noreply.github.com>
Thu, 24 Sep 2020 23:20:09 +0000 (02:20 +0300)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 23:20:09 +0000 (16:20 -0700)
commit4a7195def06a8ab8b37669cc89a19195337a144b
treecb5d9d0e53cf5c1ea160982009a6341c5ba3a8e9
parentffb20579649f05b2b375c865fab453ea063378de
JIT: Remove double-{negation,not} in during morph phase (#32000)

- fixes #13647
- Deals with arithmetic negation as well as bitwise-not
- Co-authored with @EgorBo holding my hand :)
src/coreclr/src/jit/morph.cpp
src/tests/JIT/opt/perf/doublenegate/doublenegate.cs [new file with mode: 0644]
src/tests/JIT/opt/perf/doublenegate/doublenegate.csproj [new file with mode: 0644]