3 ms·
As I cautioned in another comment > (or did, last time I checked) Do implementations of .NET JITs now do speculative optimisations or dynamic compilation? The
by chrisseaton 7y ago
As I cautioned in another comment
> (or did, last time I checked)
Do implementations of .NET JITs now do speculative optimisations or dynamic compilation? They didn't see the need for it for about 15 years.
- pjmlp 7y ago15 years ago there weren't RyuJIT which replaced the JIT you learned from, MDIL (Windows 8/8.1), .NET Native (UWP), IL2CPP (Unity), and the research ones from Singularity and Midori. In what concerns the need for it, they have been trying to make C# more relevant for the kinds of C++ workloads and getting among the first places at TechEmpower. So .NET has been getting Modula-3 like low level handling of value types within a GC environment, RyuJIT is now tiered, supports SIMD and some automatic vectorization. .NET Framework 4.6 got the first version of what is the .NET way of doing AppCDS. There are a couple of blog posts regarding RyuJIT improvements with each release after its introduction.
- chrisseaton 7y agoSo which of these implementations does speculation? I remember when RyuJIT came out it still wasn't speculative - has that now changed? If you read the blog posts, they always talk about speculation being something they may try in the future. I've not seen anything where they say they went ahead and implemented it.
- pjmlp 7y agoHere is some information Background JIT overview, which is a kind of PGO for the .NET Frameworok https://msdn.microsoft.com/en-us/magazine/mt683795.aspx https://msdn.microsoft.com/en-us/magazine/mt683795.aspx And I think this goes into line with what you are discussing, https://github.com/dotnet/coreclr/pull/21270 https://github.com/dotnet/coreclr/pull/21270 I also agree that many things remain to be done in line with what Graal is capable of.
- deleted 7y ago[deleted]
- pron 7y agoYeah, I think this is the relevant bit: https://github.com/dotnet/coreclr/blob/master/Documentation/design-docs/GuardedDevirtualization.md https://github.com/dotnet/coreclr/blob/master/Documentation/... Seems like they started trying speculative optimizations about six months ago. Speculative optimizations are not only the foundation of Graal but also of C2, BTW.