Do not fold away double negation if the tree is a CSE candidate (#50373)
authorSingleAccretion <62474226+SingleAccretion@users.noreply.github.com>
Tue, 30 Mar 2021 01:14:17 +0000 (04:14 +0300)
committerGitHub <noreply@github.com>
Tue, 30 Mar 2021 01:14:17 +0000 (18:14 -0700)
commit260397c9c3d83d018b4faf2ba3413aec95ca11cf
treea23f4864d26be4f98273ef45e4f39b3141f530b3
parente830f1006def0759fa3d2fa43629e34cdb150c3c
Do not fold away double negation if the tree is a CSE candidate (#50373)

* Do not morph away double negation if it is a CSE candidate

* Added a test verifying that double negation is not removed for CSEs

* Bump the test's priority to zero
src/coreclr/jit/morph.cpp
src/tests/JIT/opt/CSE/CSEWithDoubleNegation.cs [new file with mode: 0644]
src/tests/JIT/opt/CSE/CSEWithDoubleNegation.csproj [new file with mode: 0644]