Skip to content

Do not assume containment - #66385

Merged
EgorBo merged 1 commit into
dotnet:mainfrom
SingleAccretion:Some-CodeGen-Assumptions-Fix
Mar 14, 2022
Merged

EgorBo merged 1 commit into
dotnet:mainfrom
SingleAccretion:Some-CodeGen-Assumptions-Fix

Conversation

@SingleAccretion

@SingleAccretion SingleAccretion commented Mar 9, 2022 •

Copy link
Copy Markdown
Contributor

Codegen was assuming lowering would always contain immediates for RMW ops. It did not for some fuzzer-generated code.

Check for containment explicitly instead.

Fixes a failure seen in #66335.

No diffs.

Codegen was assuming lowering would always contain immediates
for RMW ops. It did not for some fuzzer-generated code.

Check for containment explicitly instead.
@ghost ghost added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member labels Mar 9, 2022
@ghost

ghost commented Mar 9, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Issue Details

Codegen was assuming lowering would always contain immediates for RMW ops. It did not for some fuzzer-generated code.

Check for containment explicitly instead.

Fixes a failure seen in #66335.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr, community-contribution

Milestone: -

@Wraith2

Wraith2 commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

If lowering is checking containment in most cases doesn't this means containment is now checked twice for most things?

@SingleAccretion

Copy link
Copy Markdown
Contributor Author

If lowering is checking containment in most cases doesn't this means containment is now checked twice for most things?

These are different checks though:

  1. Lowering determines if containment is legal (and profitable), if so, it sets GTF_CONTAINED.
  2. Codegen checks this flag.

@Wraith2

Wraith2 commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

Ok, no problem then. It's not duplicating effort.

@SingleAccretion

Copy link
Copy Markdown
Contributor Author

Will assume timeouts are not related. LLVM AOT failure looks like #66556.

@dotnet/jit-contrib

@EgorBo

EgorBo commented Mar 14, 2022

Copy link
Copy Markdown
Member

Yeah, timeouts were a known issue on OSX-x64 back then.

Thanks!

@EgorBo
EgorBo merged commit c3cc9fd into dotnet:main Mar 14, 2022
@SingleAccretion
SingleAccretion deleted the Some-CodeGen-Assumptions-Fix branch March 14, 2022 10:42
@ghost ghost locked as resolved and limited conversation to collaborators Apr 13, 2022
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 community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants