Stop narrowing cmp(cast<ubyte>(icon), 0)
authorMike Danes <onemihaid@hotmail.com>
Mon, 19 Dec 2016 19:53:56 +0000 (21:53 +0200)
committerMike Danes <onemihaid@hotmail.com>
Tue, 17 Jan 2017 18:26:27 +0000 (20:26 +0200)
commit5b9e6b24f1e9fd24552ca887a65a404459ec76da
treea0238c4ae294c90db5aa8fdfc5e41141ebc4b079
parentb916326217efb4f064c3d86273193c5d45f258a6
Stop narrowing cmp(cast<ubyte>(icon), 0)

This isn't useful and requires special code to narrow the cast operand. The expression is constant and compiling such an expression shows that JIT does fold it so it doesn't reach lowering.

No FX diffs.

Commit migrated from https://github.com/dotnet/coreclr/commit/4c198a2cbbc8412901a83d908d904e177050ef37
src/coreclr/src/jit/lower.cpp