Uh oh!
There was an error while loading. Please reload this page.
Handle more scenarios for loop cloning - #67930
Conversation
ghost
commented
Apr 12, 2022
Tagging subscribers to this area: @JulieLeeMSFT Issue Details
|
kunalspathak
commented
Apr 13, 2022
Failures are related to #67878 |
@dotnet/jit-contrib , @BruceForstall |
BruceForstall
commented
Apr 14, 2022
You need to worry about increment/decrement overflowing a 32-bit integer and wrapping. E.g.: with your code will clone, but generate an access violation, not System.IndexOutOfRangeException. In the case of Similar applies to down counted loops. |
kunalspathak
commented
Apr 14, 2022
Thanks for pointing that out. Let me try to fix that. |
- Increasing loops that are incremented by more than 1 like "i += 2" - Decreasing loops like "i--", "i -= 2"
kunalspathak
commented
Apr 19, 2022
@BruceForstall - I tried measuring some of the benchmarks that showed up in asmdiffs and they all show improvements.
Here is an example asmdiff from |
kunalspathak
commented
Apr 22, 2022
ping. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BruceForstall
left a comment
There was a problem hiding this comment.
LGTM.
I think you should run a jitstress job before merging.
kunalspathak
commented
Apr 25, 2022
/azp run runtime-coreclr jitstress |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Improvements on windows/x64: dotnet/perf-autofiling-issues#5072 |

TypeHashingAlgorithm.cs
runtime/src/coreclr/tools/Common/TypeSystem/Common/TypeHashingAlgorithms.cs
Lines 44 to 49 in 7bac4e8
runtime/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/EqualityComparer.cs
Lines 50 to 63 in 7bac4e8
PriorityQueue's Heapify method.
runtime/src/libraries/System.Collections/src/System/Collections/Generic/PriorityQueue.cs
Lines 588 to 591 in 7bac4e8
Contributes to #65342