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

Small fixed error in code #51821

Merged
merged 20 commits into from
May 5, 2021
Merged

Small fixed error in code #51821

merged 20 commits into from
May 5, 2021

Conversation

DarkBullNull
Copy link
Contributor

@DarkBullNull DarkBullNull commented Apr 24, 2021

If define CALL_ARG_STATS = 1 and DISPLAY_SIZES = 1 in "jit.h", then will be compilation errors

  • Remove unused pointers
  • Fixed bool-check error call
  • Fixed the type declaration for dataSize
  • Grammar fix in "compiler.h"

If def DISPLAY_SIZES = 1 in jit.h, then gives and error
If def DISPLAY_SIZES = 1, gives an error
@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 24, 2021
@dnfadmin
Copy link

dnfadmin commented Apr 24, 2021

CLA assistant check
All CLA requirements met.

@BruceForstall BruceForstall self-requested a review April 29, 2021 01:54
@DarkBullNull
Copy link
Contributor Author

@BruceForstall

Copy link
Contributor

@sandreenko sandreenko left a comment

Choose a reason for hiding this comment

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

Fixed the type declaration for dataSize(because of 2523-2524 line doesn't see the declaration of this variable in "codegencommon.cpp"). Correct me, if i'm wrong

Is there an issue if we move

size_t dataSize = GetEmitter()->emitDataSize();

from genEmitMachineCode to the next function instead of declaring it globally?

and revert eDataSize after.

src/coreclr/jit/gentree.cpp Outdated Show resolved Hide resolved
src/coreclr/jit/compiler.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@sandreenko sandreenko left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for restoring CALL_ARG_STATS and DISPLAY_SIZES .

src/coreclr/jit/codegencommon.cpp Outdated Show resolved Hide resolved
@sandreenko
Copy link
Contributor

cc @dotnet/jit-contrib

@runfoapp runfoapp bot mentioned this pull request May 5, 2021
@sandreenko
Copy link
Contributor

@sandreenko sandreenko merged commit 0ebcb68 into dotnet:main May 5, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 25, 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.

5 participants