dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.91k stars 4.63k forks source link

JIT: implement operation narrowing phase #32504

Open AndyAyersMS opened 4 years ago

AndyAyersMS commented 4 years ago

Implement a narrowing optimization to reduce width of computations, where profitable.

See for instance #32089.

Likely would rely on part-word (or maybe even bitwise) liveness. Could be done locally (per tree) or globally.

category:cq theme:optimization skill-level:expert cost:large

EgorBo commented 4 years ago

I guess https://github.com/dotnet/runtime/issues/13816 is related