Skip to content

Conversation

@amanasifkhalid
Copy link
Contributor

@amanasifkhalid amanasifkhalid commented Oct 21, 2024

Revising this based on suggestions from @richlander. cc @gewarren


Internal previews

📄 File 🔗 Preview link
docs/core/whats-new/dotnet-9/runtime.md docs/core/whats-new/dotnet-9/runtime

@amanasifkhalid amanasifkhalid requested review from a team and gewarren as code owners October 21, 2024 14:30
@dotnetrepoman dotnetrepoman bot added this to the October 2024 milestone Oct 21, 2024
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there cases where it would have been coded that way already (counts down)?

@amanasifkhalid
Copy link
Contributor Author

Are there cases where it would have been coded that way already (counts down)?

As far as I know, the JIT previously would've done this only if the user actually wrote the loop to count down (i.e. for (int i = 100; i >= 0; i--)). The JIT's ability to flip loop directions is new in .NET 9.

@gewarren gewarren merged commit ffa5b56 into dotnet:main Oct 21, 2024
9 checks passed
@amanasifkhalid amanasifkhalid deleted the fix-loop-countdown branch October 21, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants