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

O1 #205

Merged
merged 2 commits into from
Sep 23, 2024
Merged

O1 #205

merged 2 commits into from
Sep 23, 2024

Conversation

vext01
Copy link

@vext01 vext01 commented Sep 20, 2024

Companion to ykjit/yk#1400

@@ -1982,9 +1982,10 @@ void AsmPrinter::emitFunctionBody() {
break;
default:

// Note that a patchpoint call, unlike a stackmap call, does actually
Copy link

Choose a reason for hiding this comment

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

I think I understand this comment in the context of this PR but after this PR is merged, this comment will probably bemuse readers, who won't have the context that makes it make sense.

I wonder if it should be reworded to something vaguely along the lines of "Stackmaps and statepoints have to XYZ. However, patchpoints -- even though they're similar to stackmaps and statepoints -- don't have to XYZ because ABC."?

Choose a reason for hiding this comment

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

Maybe: "We don't need emit labels for STACKMAP since this intrinsic doesn't codegen a call. Patchpoints however, do emit calls, and so need to be included".

By the way, STATEPOINT also emits calls. But we don't use them.

Copy link

Choose a reason for hiding this comment

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

Does that mean that the STATEPOINT line in the conditional should also be removed?

Choose a reason for hiding this comment

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

I think we can remove it. Since we don't use STATEPOINT it doesn't affect us, but technically I think it being there is incorrect. At least from what I can tell from https://llvm.org/docs/Statepoints.html#safepoint-semantics-verification.

Copy link
Author

Choose a reason for hiding this comment

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

I improved the comment in 4068ee0, but I hadn't seen the discussion on statepoint at that time.

@ptersilie would you mind tackling this, if any change is required.

Copy link

Choose a reason for hiding this comment

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

Let's just rip out the STATEPOINT line now; if we need it, we'll surely see it in some tests.

Copy link
Author

Choose a reason for hiding this comment

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

Done in ea8d55c

@vext01
Copy link
Author

vext01 commented Sep 20, 2024

Ready to squash?

@ltratt
Copy link

ltratt commented Sep 20, 2024

Please squash.

@vext01
Copy link
Author

vext01 commented Sep 20, 2024

squashed!

@ltratt ltratt added this pull request to the merge queue Sep 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 20, 2024
@vext01
Copy link
Author

vext01 commented Sep 23, 2024

9c95422 is the fix.

OK to squash it in?

@ltratt
Copy link

ltratt commented Sep 23, 2024

Please squash.

Fixes required to get yk working wiht a full -O1 post-link pipeline.
It was talking about the old design that used a struct for live
variables.
@vext01
Copy link
Author

vext01 commented Sep 23, 2024

squashed.

@ltratt ltratt added this pull request to the merge queue Sep 23, 2024
Merged via the queue into ykjit:main with commit 779ebd8 Sep 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants