-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[RISCV] Optimize divide by constant for VP intrinsics #125991
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
base: main
Are you sure you want to change the base?
Changes from all commits
00095e1
bf0b608
b613775
81032b1
b833489
53b16ef
127432c
2fd98d7
12cc971
69c6cbc
e2c0516
f2df824
f8c91e9
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 |
---|---|---|
|
@@ -1277,8 +1277,8 @@ void DAGTypeLegalizer::SplitVectorResult(SDNode *N, unsigned ResNo) { | |
case ISD::ADD: case ISD::VP_ADD: | ||
case ISD::SUB: case ISD::VP_SUB: | ||
case ISD::MUL: case ISD::VP_MUL: | ||
case ISD::MULHS: | ||
case ISD::MULHU: | ||
case ISD::MULHS: case ISD::VP_MULHS: | ||
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 this tested? 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. I can't find a way to test this. The div by constant optimization that creates MULH won't fire on illegal vector types. I guess we can leave it so we dont't forget it if we add more VP_MULH combines in the future. Its sufficiently simililar to VP_MUL that it should just work. |
||
case ISD::MULHU: case ISD::VP_MULHU: | ||
case ISD::ABDS: | ||
case ISD::ABDU: | ||
case ISD::AVGCEILS: | ||
|
@@ -4552,8 +4552,8 @@ void DAGTypeLegalizer::WidenVectorResult(SDNode *N, unsigned ResNo) { | |
case ISD::ADD: case ISD::VP_ADD: | ||
case ISD::AND: case ISD::VP_AND: | ||
case ISD::MUL: case ISD::VP_MUL: | ||
case ISD::MULHS: | ||
case ISD::MULHU: | ||
case ISD::MULHS: case ISD::VP_MULHS: | ||
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 this tested? 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. I can't find a way to test this. The div by constant optimization that creates MULH won't fire on illegal vector types. I guess we can leave it so we dont't forget it if we add more VP_MULH combines in the future. Its sufficiently simililar to VP_MUL that it should just work. |
||
case ISD::MULHU: case ISD::VP_MULHU: | ||
case ISD::ABDS: | ||
case ISD::ABDU: | ||
case ISD::OR: case ISD::VP_OR: | ||
|
Uh oh!
There was an error while loading. Please reload this page.