-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8265244: Remove useless comparation in LibraryCallKit::inline_vector_convert() #3507
Conversation
👋 Welcome back whuang! A progress list of the required criteria for merging this PR into |
/contributor add Wang Huang whuang@openjdk.org |
@Wanghuang-Huawei 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. |
@Wanghuang-Huawei |
@Wanghuang-Huawei |
Webrevs
|
/test |
@Wanghuang-Huawei you need to get approval to run the tests in tier1 for commits up until f65c867 |
@iwanowww Can you do me a favor to review this patch? Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the bug and PR title to something that describes the problem or solution.
Thank you for your review. I will change that. |
@@ -2401,6 +2401,11 @@ const bool Matcher::match_rule_supported_vector(int opcode, int vlen, BasicType | |||
} else { // NEON | |||
// Special cases | |||
switch (opcode) { | |||
case Op_VectorReinterpret: | |||
if (bit_size != 64 && bit_size != 128) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bit_size < 64 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reinterpret's size should bit_size == 64 || bit_size == 128
*/ | ||
|
||
public class TestCast4STo2I { | ||
static final VectorSpecies<Short> SPECIESs = ShortVector.SPECIES_64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SPECIES_S?
|
||
public class TestCast4STo2I { | ||
static final VectorSpecies<Short> SPECIESs = ShortVector.SPECIES_64; | ||
static final VectorSpecies<Integer> SPECIESi = IntVector.SPECIES_64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
for (int i = 0; i < SIZE; i++) { | ||
System.out.print(ai[i] + ", "); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to add the correctness testing as well to make sure the results are right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the title of this to
8265244: AArch64: Remove useless comparation in LibraryCallKit::inline_vector_convert()
since it affects the AArch64 port. This makes the logs and the mailing lists much easier to read.
Thanks.
Thank you for your suggestion. There is only one question here: the comparation
which will be removed here can effect all cpus. |
@@ -1450,7 +1450,7 @@ bool LibraryCallKit::inline_vector_convert() { | |||
// Since input and output number of elements are not consistent, we need to make sure we | |||
// properly size. Thus, first make a cast that retains the number of elements from source. | |||
// In case the size exceeds the arch size, we do the minimum. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're going to remove the MIN2 you must also change this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I will remove that in next commit.
@@ -1469,7 +1469,7 @@ bool LibraryCallKit::inline_vector_convert() { | |||
} else if (num_elem_from > num_elem_to) { | |||
// Since number elements from input is larger than output, simply reduce size of input (we are supposed to | |||
// drop top elements anyway). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one too?
Mailing list message from Andrew Haley on hotspot-compiler-dev: On 4/30/21 3:26 AM, Wang Huang wrote:
Perhaps so. However, you need to do something with the title because this patch -- |
@Wanghuang-Huawei 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! |
@Wanghuang-Huawei 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 |
VectorReinterpret
with 64/128 bits.VectorReinterpret
inmatch_rule_supported_vector
inline_vector_conver
is useless now. However, these checks impact other cpus, so I need more reviewers.Progress
Issue
Contributors
<whuang@openjdk.org>
<aijiaming1@huawei.com>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3507/head:pull/3507
$ git checkout pull/3507
Update a local copy of the PR:
$ git checkout pull/3507
$ git pull https://git.openjdk.java.net/jdk pull/3507/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3507
View PR using the GUI difftool:
$ git pr show -t 3507
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3507.diff