8388858: C2: Add UseLoopLimitCheckPredicate and UseParsePredicates flags - #32233
8388858: C2: Add UseLoopLimitCheckPredicate and UseParsePredicates flags#32233chhagedorn wants to merge 1 commit into
Conversation
|
👋 Welcome back chagedorn! A progress list of the required criteria for merging this PR into |
| "-XX:+UseLoopLimitCheckPredicate", | ||
| "-XX:+UseParsePredicates" |
There was a problem hiding this comment.
Needed to update this test, otherwise, it takes forever and times out.
| @@ -1,95 +0,0 @@ | |||
| /* | |||
There was a problem hiding this comment.
Git wrongly did a remove + add here while it's just a rename.
| TestFramework.runWithFlags("-XX:-UseParsePredicates"); | ||
| TestFramework.runWithFlags("-XX:-UseLoopLimitCheckPredicate"); | ||
| TestFramework.runWithFlags("-XX:-UseAutoVectorizationPredicate"); | ||
| TestFramework.runWithFlags("-XX:-ShortRunningLongLoop"); |
There was a problem hiding this comment.
Added more variants here and strengthened the IR rules to check all parse predicates.
|
❗ This change is not yet ready to be integrated. |
|
@chhagedorn The following label will be automatically applied to this pull request:
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. |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
|
/label add hotspot-compiler |
|
@chhagedorn |
We have flag switches for all predicates - except for Loop Limit Check Predicates. It is sometimes useful to also disable these for debugging or testing purposes to not create a Parse Predicate for them which means that we cannot create Loop Limit Check Predicates.
With that in place, it would also be useful to disable all Parse Predicates together. This is especially useful for debugging to simplify a graph. But it's also useful to simulate a situation where no Parse Predicates remain above a loop head. This could happen, for example, when partially peeling a loop (the Parse Predicates are above the partially peeled section and not above the loop head anymore and are thus removed) or when we trapped already and then no longer emit a Parse Predicate.
This patch proposes both flags:
UseLoopLimitCheckPredicate: Disable Loop Limit Check Predicate creation.UseParsePredicates: Disables all Parse Predicates from being emitted.UseParsePredicatesto false as well and emit a warning.Testing:
-XX:-UseParsePredicates,--enable-preview-XX:-UseParsePredicates(found a reproducer for JDK-8388490)-XX:-UseLoopLimitCheckPredicateThanks,
Christian
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32233/head:pull/32233$ git checkout pull/32233Update a local copy of the PR:
$ git checkout pull/32233$ git pull https://git.openjdk.org/jdk.git pull/32233/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 32233View PR using the GUI difftool:
$ git pr show -t 32233Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32233.diff
Using Webrev
Link to Webrev Comment