Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve loop unrolling documentation #52099

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

BruceForstall
Copy link
Member

Minor cleanups to loop unrolling:

  1. Add header comments with documentation
  2. Make jitIterSmallOverflow/jitIterSmallUnderflow private static Compiler
    class members, and not just "loose" functions.
  3. Manually loop hoist ITER_LIMIT and UNROLL_LIMIT_SZ and dependent
    asserts, plus iterLimit setting.

Also, make optCloneLoops and optUnrollLoops return a PhaseStatus,
so for early-out cases they can return MODIFIED_NOTHING.

Minor cleanups to loop unrolling:
1. Add header comments with documentation
2. Make jitIterSmallOverflow/jitIterSmallUnderflow private static `Compiler`
class members, and not just "loose" functions.
3. Manually loop hoist ITER_LIMIT and UNROLL_LIMIT_SZ and dependent
asserts, plus `iterLimit` setting.

Also, make `optCloneLoops` and `optUnrollLoops` return a PhaseStatus,
so for early-out cases they can return MODIFIED_NOTHING.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 30, 2021
@BruceForstall BruceForstall enabled auto-merge (squash) April 30, 2021 06:20
@BruceForstall
Copy link
Member Author

No asm diffs

@BruceForstall
Copy link
Member Author

@AndyAyersMS @dotnet/jit-contrib PTAL

@BruceForstall BruceForstall merged commit e7e73c2 into dotnet:main Apr 30, 2021
@BruceForstall BruceForstall deleted the LoopUnrollCleanup branch April 30, 2021 16:25
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants