We should be able to match elements with the swapped predicate as well - as long as we commute the source operands.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D59956
[SLP] Add support for swapping icmp/fcmp predicates to permit vectorization ClosedPublic Authored by RKSimon on Mar 28 2019, 12:17 PM.
Details Summary We should be able to match elements with the swapped predicate as well - as long as we commute the source operands.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 28 2019, 2:17 PM Closed by commit rL357243: [SLP] Add support for swapping icmp/fcmp predicates to permit vectorization (authored by RKSimon). · Explain WhyMar 29 2019, 3:41 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 192699 lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/cmp_commute.ll
|
CmpInst *->auto *. You need always to add & or * to the auto (if any can be applied) to make it easier to read the code.