-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
[LoopVectorize] Vectorize select-cmp reduction pattern for increasing integer induction variable #67812
[LoopVectorize] Vectorize select-cmp reduction pattern for increasing integer induction variable #67812
Changes from 1 commit
6bdc81f
bcab2a6
dfa355b
734da15
2c896c4
1946c8c
e8d5b1d
d2bfe2f
4a88b44
d21b127
2fe0a94
7ebc7d8
3e2e9f1
11900cd
2924bf9
dd21cd3
76e91cc
4f743ab
556743a
a852eb6
4947e0f
6e739d8
7d2a8ec
e530a3a
e50439e
ab0b4d3
97e0433
69cd172
5ebec5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
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. Maybe just delete this file, since it looks practically the same as llvm/test/Transforms/LoopVectorize/iv-select-cmp-no-wrap.ll and doesn't seem to offer any extra value? 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. No, we must retain
|
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.
Both
@select_icmp_const_1
and@select_icmp_const_2
look similar to testselect_icmp_nuw_nsw
in Transforms/LoopVectorize/iv-select-cmp-no-wrap.ll.Also, I see the only difference between
@select_icmp_const_1
and@select_icmp_const_2
is the operands to the select are swapped. I'm not sure having both versions really adds much value. Perhaps you can remove both of them and leave the one in iv-select-cmp-no-wrap.llThere 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.
They are indeed quite similar. iv-select-cmp.ll is for testing IR generation, including the case of UF > 1. iv-select-cmp-no-wrap.ll is for testing whether vectorization is legal.
My suggestion is to remove
select_icmp_nuw_nsw
from iv-select-cmp-no-wrap.ll, and retain@select_icmp_const_1
and@select_icmp_const_2
.What do you think?
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.
@david-arm Ping.
Regarding my test file proposal, what do you think?