Skip to content

JIT: Fix loop unscaling computations#50807

Merged
AndyAyersMS merged 1 commit into
dotnet:mainfrom
AndyAyersMS:FixLoopUnscale
Apr 9, 2021
Merged

JIT: Fix loop unscaling computations#50807
AndyAyersMS merged 1 commit into
dotnet:mainfrom
AndyAyersMS:FixLoopUnscale

Conversation

@AndyAyersMS

Copy link
Copy Markdown
Member

Changes made in #50633 were simply wrong, and lead to division by
infinite values.

Fixes #50743.

Changes made in dotnet#50633 were simply wrong, and lead to division by
infinite values.

Fixes dotnet#50743.
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 6, 2021
@AndyAyersMS

Copy link
Copy Markdown
Member Author

@BruceForstall PTAL
cc @dotnet/jit-contrib

Will post diffs shortly.

@AndyAyersMS

Copy link
Copy Markdown
Member Author

There is another issue here which I'll address separately (#50808).

The guarding condition isMaxBBWeight should have prevented the problem being fixed here, but that method doesn't do a reasonable check.

@AndyAyersMS

Copy link
Copy Markdown
Member Author

31 diffs across SPMI... spot checked a few, and all were from leaving block weights too high after removing a loop.

@BruceForstall

Copy link
Copy Markdown
Contributor

@AndyAyersMS I presume you're still waiting on this until you can get our CI to behave? The assert this fixes is pervasive in CI jobs, so hopefully we can get this in sooner rather than later.

@AndyAyersMS

Copy link
Copy Markdown
Member Author

uou're still waiting on this until you can get our CI to behave?

Yes. Seems like things are still not where they should be.

@AndyAyersMS

Copy link
Copy Markdown
Member Author

Going to bounce this.

@AndyAyersMS AndyAyersMS closed this Apr 9, 2021
@AndyAyersMS AndyAyersMS reopened this Apr 9, 2021
@AndyAyersMS

Copy link
Copy Markdown
Member Author

Look at that, all green...

@AndyAyersMS
AndyAyersMS merged commit 950eb6f into dotnet:main Apr 9, 2021
@AndyAyersMS
AndyAyersMS deleted the FixLoopUnscale branch April 9, 2021 23:19
@JulieLeeMSFT JulieLeeMSFT added this to the 6.0.0 milestone Apr 15, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 15, 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.

Assertion failed 'block->bbWeight > BB_ZERO_WEIGHT'

3 participants