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

8267265: Use new IR Test Framework to create tests for C2 Ideal transformations #7434

Closed
wants to merge 3 commits into from

Conversation

JohnTortugo
Copy link
Contributor

@JohnTortugo JohnTortugo commented Feb 10, 2022

Hi, can I please get some reviews for this Pull Request? Here is a summary of the changes:

  • Add tests, using the new IR-based test framework, for several of the Ideal transformations on Add, Sub, Mul, Div, Loop nodes and some simple Scalar Replacement transformations.
  • Add more default IR regex's to IR-based test framework.

/cc @chhagedorn - I decided to create a new PR for this work since the previous one was quite stale. I believe I've addressed all feedback that you provided so far, please let me know if there is something missing and I'll get to it asap.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8267265: Use new IR Test Framework to create tests for C2 Ideal transformations

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/7434/head:pull/7434
$ git checkout pull/7434

Update a local copy of the PR:
$ git checkout pull/7434
$ git pull https://git.openjdk.java.net/jdk pull/7434/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 7434

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/7434.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Feb 10, 2022

👋 Welcome back JohnTortugo! 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 openjdk bot added the rfr Pull request is ready for review label Feb 10, 2022
@openjdk
Copy link

openjdk bot commented Feb 10, 2022

@JohnTortugo Usage: /cc <add|remove> [label[, label, ...]] or /cc [<+|->label[, <+|->label, ...]] where label is an additional classification that should be applied to this PR. These labels are valid:

  • serviceability
  • hotspot
  • hotspot-compiler
  • ide-support
  • kulla
  • i18n
  • shenandoah
  • jdk
  • javadoc
  • security
  • hotspot-runtime
  • jmx
  • build
  • nio
  • client
  • core-libs
  • compiler
  • net
  • hotspot-gc
  • hotspot-jfr

@openjdk
Copy link

openjdk bot commented Feb 10, 2022

@JohnTortugo The following label will be automatically applied to this pull request:

  • hotspot-compiler

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

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Feb 10, 2022
@mlbridge
Copy link

mlbridge bot commented Feb 10, 2022

Webrevs

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Nice. I will run testing to make sure they work in all configurations (which we testing).

@vnkozlov
Copy link
Contributor

I got compilation failures for new tests. For example:

test/hotspot/jtreg/compiler/c2/irTests/SubLNodeIdealizationTests.java:83: error: cannot find symbol
    @IR(failOn = {IRNode.SUB})
                        ^
  symbol:   variable SUB
  location: class IRNode

@chhagedorn
Copy link
Member

Nice work! Thanks for coming back to this with the updates. I'll have a closer look next week.

Copy link
Member

@chhagedorn chhagedorn left a comment

Choose a reason for hiding this comment

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

Apart from some minor things and some possible missing cases when comparing the int vs long tests, it looks good to me!

@openjdk openjdk bot removed the rfr Pull request is ready for review label Feb 14, 2022
@openjdk openjdk bot added the rfr Pull request is ready for review label Feb 17, 2022
Copy link
Member

@chhagedorn chhagedorn left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for doing the updates!

I'll submit another round of testing over the weekend.

@openjdk
Copy link

openjdk bot commented Feb 18, 2022

⚠️ @JohnTortugo the full name on your profile does not match the author name in this pull requests' HEAD commit. If this pull request gets integrated then the author name from this pull requests' HEAD commit will be used for the resulting commit. If you wish to push a new commit with a different author name, then please run the following commands in a local repository of your personal fork:

$ git checkout ir-tests
$ git commit -c user.name='Preferred Full Name' --allow-empty -m 'Update full name'
$ git push

@openjdk
Copy link

openjdk bot commented Feb 18, 2022

@JohnTortugo This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8267265: Use new IR Test Framework to create tests for C2 Ideal transformations

Reviewed-by: chagedorn

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 133 new commits pushed to the master branch:

  • 2557ef8: 8282276: Problem list failing two Robot Screen Capture tests
  • 6445ee4: 5041655: (ch) FileLock: negative param and overflow issues
  • 7feabee: 8261407: ReflectionFactory.checkInitted() is not thread-safe
  • 58e1882: 8282042: [testbug] FileEncodingTest.java depends on default encoding
  • 3cb3867: 8281315: Unicode, (?i) flag and backreference throwing IndexOutOfBounds Exception
  • 957dae0: 8280958: G1/Parallel: Unify marking code structure
  • e44d067: 8244593: Clean up GNM/NM after JEP 381
  • 41355e2: 8276686: Malformed Javadoc inline tags in JDK source in /java/util/regex/Pattern.java
  • 022d807: 8271008: appcds/*/MethodHandlesAsCollectorTest.java tests time out because of excessive GC (CodeCache GC Threshold) in loom
  • ab6d8e6: 8260328: Drop redundant CSS properties from java.desktop HTML files
  • ... and 123 more: https://git.openjdk.java.net/jdk/compare/83b6e4bc04db89a846a1b6c2d0666efe139f8f61...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@vnkozlov, @chhagedorn) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Feb 18, 2022
@chhagedorn
Copy link
Member

I'll submit another round of testing over the weekend.

hs-tier1-3 looked good!

@JohnTortugo
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Feb 22, 2022
@openjdk
Copy link

openjdk bot commented Feb 22, 2022

@JohnTortugo
Your change (at version 61d0a1a) is now ready to be sponsored by a Committer.

@chhagedorn
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Feb 28, 2022

Going to push as commit efd3967.
Since your change was applied there have been 177 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Feb 28, 2022
@openjdk openjdk bot closed this Feb 28, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Feb 28, 2022
@openjdk openjdk bot removed the sponsor Pull request is ready to be sponsored label Feb 28, 2022
@openjdk
Copy link

openjdk bot commented Feb 28, 2022

@chhagedorn @JohnTortugo Pushed as commit efd3967.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@JohnTortugo
Copy link
Contributor Author

Thank you @chhagedorn !

@JohnTortugo JohnTortugo deleted the ir-tests branch February 28, 2022 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated
3 participants