-
Couldn't load subscription status.
- Fork 6.1k
8342095: Add autovectorizer support for subword vector casts #23413
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
Changes from all commits
6108c5d
3b5447f
cf75b26
6daa8ac
8920454
b02408f
482ddbc
996eaed
fc7be77
36f598a
8c05fe2
8c00ef8
03ee115
78934c9
84d94ac
aabaafb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -189,6 +189,19 @@ VTransformNode* SuperWordVTransformBuilder::get_or_make_vtnode_vector_input_at_i | |
|
|
||
| Node_List* pack_in = _packset.pack_input_at_index_or_null(pack, index); | ||
| if (pack_in != nullptr) { | ||
| Node* in_p0 = pack_in->at(0); | ||
| BasicType def_bt = _vloop_analyzer.types().velt_basic_type(in_p0); | ||
| BasicType use_bt = _vloop_analyzer.types().velt_basic_type(p0); | ||
|
|
||
| // If the use and def types are different, emit a cast node | ||
| if (use_bt != def_bt && !p0->is_Convert() && SuperWord::is_supported_subword_cast(def_bt, use_bt, pack->size())) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is |
||
| VTransformNode* in = get_vtnode(pack_in->at(0)); | ||
| VTransformNode* cast = new (_vtransform.arena()) VTransformCastVectorNode(_vtransform, pack->size(), def_bt, use_bt); | ||
| cast->set_req(1, in); | ||
|
|
||
| return cast; | ||
| } | ||
|
|
||
| // Input is a matching pack -> vtnode already exists. | ||
| assert(index != 2 || !VectorNode::is_shift(p0), "shift's count cannot be vector"); | ||
| return get_vtnode(pack_in->at(0)); | ||
|
|
||
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.
Not sure if we discussed this before: should we not move this to
VectorCastNode, rather than having it inSuperWord?