8384507: Incorrect vector reassociation for signed saturating addition#31172
8384507: Incorrect vector reassociation for signed saturating addition#31172jatin-bhateja wants to merge 1 commit into
Conversation
|
👋 Welcome back jbhateja! A progress list of the required criteria for merging this PR into |
|
/label add hotspot-compiler-dev |
|
❗ This change is not yet ready to be integrated. |
|
@jatin-bhateja |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
|
@jatin-bhateja To determine the appropriate audience for reviewing this pull request, one or more labels corresponding to different subsystems will normally be applied automatically. However, no automatic labelling rule matches the changes in this pull request. In order to have an "RFR" email sent to the correct mailing list, you will need to add one or more applicable labels manually using the /label pull request command. Applicable Labels
|
Reassociating vector broadcasts expects the vector operation to be associative, since we perform the following transformation:
Signed saturating addition is not an associative operation, i.e. sat_add(a, sat_add(b, c)) != sat_add(sat_add(a, b), c) because intermediate clamping can change the final result. This patch introduces is_associative_vector_operation() which skips the reassociation transformation for signed saturating addition while continuing to allow it for unsigned saturating addition (which is associative).
Please review and share your feedback.
Best Regards,
Jatin
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31172/head:pull/31172$ git checkout pull/31172Update a local copy of the PR:
$ git checkout pull/31172$ git pull https://git.openjdk.org/jdk.git pull/31172/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 31172View PR using the GUI difftool:
$ git pr show -t 31172Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31172.diff
Using Webrev
Link to Webrev Comment