Handle mixed-width args to mul-shift-right by abadams · Pull Request #6526 · halide/Halide · GitHub
Skip to content

Handle mixed-width args to mul-shift-right#6526

Merged
abadams merged 3 commits into
masterfrom
abadams/mixed_width_mul_shift_right
Jan 4, 2022
Merged

Handle mixed-width args to mul-shift-right#6526
abadams merged 3 commits into
masterfrom
abadams/mixed_width_mul_shift_right

Conversation

@abadams

@abadams abadams commented Jan 2, 2022

Copy link
Copy Markdown
Member

and codegen it to pmulhuw on x86

@abadams abadams requested a review from dsharletg January 3, 2022 18:17

@steven-johnson steven-johnson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending green

Comment thread src/FindIntrinsics.cpp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we think we will ever do so, tricky or not? (If so, tracking issue, please)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. It depends on if it comes up in practice. It's part of the unbounded frontier of ways we could make instruction selection more clever. I don't want to add a tracking issue for each possible new way to use an instruction.

@abadams abadams merged commit 0089de9 into master Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants