Skip to content

Conversation

@pfustc
Copy link
Member

@pfustc pfustc commented Jul 11, 2023

As discussed in JDK-8308994, we are working on re-implementation of post loop vectorization and planning to refactor current SuperWord code. As nobody is using or maintaining the old implementation now, to make the refactoring work easier, we propose to remove the legacy code of the old implementation first.

This patch removes all code realted to PostLoopMultiversioning inside and outside SuperWord. After the removal, SLP_extract() in SuperWord should only work on main loops. So we also removed all is_main_loop() checks inside and added assertions instead.

Tested with hotspot::hotspot_all_no_apps, jdk tier1~3, langtools tier1 and 100k fuzzer tests on x86 and AArch64, no issue is found.


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-8311691: C2: Remove legacy code related to PostLoopMultiversioning (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 14824

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

Using diff file

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

Webrev

Link to Webrev Comment

As discussed in JDK-8308994, we are working on re-implementation of post
loop vectorization and planning to refactor current SuperWord code. As
nobody is using or maintaining the old implementation now, to make the
refactoring work easier, we propose to remove the legacy code of the old
implementation first.

This patch removes all code realted to `PostLoopMultiversioning` inside
and outside SuperWord. After the removal, `SLP_extract()` in SuperWord
should only work on main loops. So we also removed all `is_main_loop()`
checks inside and added assertions instead.

Tested with hotspot::hotspot_all_no_apps, jdk tier1~3, langtools tier1
and 100k fuzzer tests on x86 and AArch64, no issue is found.
@bridgekeeper
Copy link

bridgekeeper bot commented Jul 11, 2023

👋 Welcome back pli! 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 Jul 11, 2023
@openjdk
Copy link

openjdk bot commented Jul 11, 2023

@pfustc 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 Jul 11, 2023
@mlbridge
Copy link

mlbridge bot commented Jul 11, 2023

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.

Good. Thank you for cleaning this.

@openjdk
Copy link

openjdk bot commented Jul 11, 2023

@pfustc 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:

8311691: C2: Remove legacy code related to PostLoopMultiversioning

Reviewed-by: kvn, sviswanathan

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 17 new commits pushed to the master branch:

  • f82c818: 8308694: Clarify reversed() default methods' implementation requirements
  • 7304316: 8311926: java/lang/ScopedValue/StressStackOverflow.java takes 9mins in tier1
  • aa7367f: 8311921: Inform about MaxExpectedDataSegmentSize in case of pthread_create failures on AIX
  • 753bd56: 8311870: Split CompressedKlassPointers from compressedOops.hpp
  • 0b0e064: 8311656: Shenandoah: Unused ShenandoahSATBAndRemarkThreadsClosure::_claim_token
  • fd7fddb: 8295894: Remove SECOM certificate that is expiring in September 2023
  • d82ade3: 8310683: Refactor StandardCharset/standard.java to use JUnit
  • aac903d: 8311805: Clean up ScrollPane: drop redundant initialiser, mark scroller final
  • 15195e6: 8310066: Improve test coverage for JVMTI GetThreadState on carrier and mounted vthread
  • 6cb9ec3: 6960866: [Fmt-Ch] ChoiceFormat claims impossible and unimplemented functionality
  • ... and 7 more: https://git.openjdk.org/jdk/compare/4b1403d06b99b91ddd89ad6e54669b0595f1f8e5...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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jul 11, 2023
@pfustc
Copy link
Member Author

pfustc commented Jul 12, 2023

Thanks Vladimir for approving this. May I have another review?

Copy link

@sviswa7 sviswa7 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 to me as well.

@pfustc
Copy link
Member Author

pfustc commented Jul 13, 2023

/integrate

@openjdk
Copy link

openjdk bot commented Jul 13, 2023

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

  • 38f7412: 8311609: [windows] Native stack printing lacks source information for dynamically loaded dlls
  • e51472e: 8309566: Migrate away from TagletWriter and TagletWriterImpl
  • fb90af8: 8311380: Prepare java.desktop for C++17
  • 743e8b8: 8306785: fix deficient spliterators for Sequenced Collections
  • 372d0cf: 8311545: Allow test symbol files to be kept in the test image
  • 489a32f: 8311813: C1: Uninitialized PhiResolver::_loop field
  • 119cc49: 8156889: ListKeychainStore.sh fails in some virtualized environments
  • ed9337e: 8155902: DataOuputStream should clarify that it might write primitive types as multiple byte groups
  • f82c818: 8308694: Clarify reversed() default methods' implementation requirements
  • 7304316: 8311926: java/lang/ScopedValue/StressStackOverflow.java takes 9mins in tier1
  • ... and 15 more: https://git.openjdk.org/jdk/compare/4b1403d06b99b91ddd89ad6e54669b0595f1f8e5...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jul 13, 2023
@openjdk openjdk bot closed this Jul 13, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jul 13, 2023
@openjdk
Copy link

openjdk bot commented Jul 13, 2023

@pfustc Pushed as commit a38582e.

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

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

Development

Successfully merging this pull request may close these issues.

3 participants