This change is part of https://reviews.llvm.org/D28907.
Following change let us schedule a bundle with different opcodes in it, for example : [ load, add, add, add ]
Paths
| Differential D36518
[SLPVectorizer] Schedule bundle with different opcodes. ClosedPublic Authored by dtemirbulatov on Aug 9 2017, 6:45 AM.
Details Summary This change is part of https://reviews.llvm.org/D28907. Following change let us schedule a bundle with different opcodes in it, for example : [ load, add, add, add ]
Diff Detail Event TimelineComment Actions Test cases?
Comment Actions
Well, I could add tests here, but it is a like a main flow of this algorithm and it should be tested already here. Comment Actions Thanks for the new tests - a few minor remarks.
This revision is now accepted and ready to land.Aug 14 2017, 3:08 AM Closed by commit rL310847: [SLPVectorizer] Schedule bundle with different opcodes. (authored by dinar). · Explain WhyAug 14 2017, 8:41 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 110907 lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/schedul-bundel.ll
|
You can avoid the extra indentation by an early-out
You might even be able to tidily replace the while loop with a for loop it you used shorter variable names.