Skip to content

Conversation

@linzihao1999
Copy link
Contributor

@linzihao1999 linzihao1999 commented Mar 26, 2025

This patch remove slice parameter from LoadNode::make

Mention in #21834 (review)

Hi team, I am new, I'd appreciate any guidance. Thank a lot!


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8344116: C2: remove slice parameter from LoadNode::make (Enhancement - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24258/head:pull/24258
$ git checkout pull/24258

Update a local copy of the PR:
$ git checkout pull/24258
$ git pull https://git.openjdk.org/jdk.git pull/24258/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 24258

View PR using the GUI difftool:
$ git pr show -t 24258

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24258.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 26, 2025

👋 Welcome back linzihao1999! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Mar 26, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 26, 2025
@openjdk
Copy link

openjdk bot commented Mar 26, 2025

@linzihao1999 The following labels will be automatically applied to this pull request:

  • graal
  • hotspot
  • shenandoah

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added graal graal-dev@openjdk.org hotspot hotspot-dev@openjdk.org shenandoah shenandoah-dev@openjdk.org labels Mar 26, 2025
@mlbridge
Copy link

mlbridge bot commented Mar 26, 2025

@chhagedorn
Copy link
Member

/label add hotspot-compiler

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Mar 27, 2025
@openjdk
Copy link

openjdk bot commented Mar 27, 2025

@chhagedorn
The hotspot-compiler label was successfully added.

@openjdk
Copy link

openjdk bot commented Mar 28, 2025

@linzihao1999 Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

@linzihao1999 linzihao1999 marked this pull request as draft March 28, 2025 13:23
@openjdk openjdk bot removed the rfr Pull request is ready for review label Mar 28, 2025
@linzihao1999 linzihao1999 marked this pull request as ready for review March 29, 2025 07:15
@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 29, 2025
@linzihao1999
Copy link
Contributor Author

Hi @TobiHartmann , Could you please take a look? Thank you.

@TobiHartmann
Copy link
Member

I think @rwestrel should have a look at this, since he suggested the cleanup in #21834.

PhaseGVN& gvn = opt_access.gvn();
Node* mem = mm->memory_at(gvn.C->get_alias_index(adr_type));
load = LoadNode::make(gvn, control, mem, adr, adr_type, val_type, access.type(), mo, dep,
Node* mem = mm->memory_at(gvn.C->get_alias_index(access.addr().type()));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we get rid of all uses of access.addr().type()?

// stores. In theory we could relax the load from ctrl() to
// no_ctrl, but that doesn't buy much latitude.
Node* card_val = __ load( __ ctrl(), card_adr, TypeInt::BYTE, T_BYTE, adr_type);
Node* card_val = __ load( __ ctrl(), card_adr, TypeInt::BYTE, T_BYTE);
Copy link
Contributor

Choose a reason for hiding this comment

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

We could asssert that C->get_alias_index(kit->type(card_adr) == Compile::AliasIdxRaw, that is that computed slice is the same as hardcoded slide. Similar asserts could be added for every location where a slice/address type is removed in this patch.

@bridgekeeper
Copy link

bridgekeeper bot commented May 6, 2025

@linzihao1999 This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 3, 2025

@linzihao1999 This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

graal graal-dev@openjdk.org hotspot hotspot-dev@openjdk.org hotspot-compiler hotspot-compiler-dev@openjdk.org rfr Pull request is ready for review shenandoah shenandoah-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

4 participants