Reworked the previously committed patch to insert shuffles for reused
extract element instructions in the correct position. Previous logic was
incorrect, and might lead to the crash with PHIs and EH instructions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This version makes a lot more sense. :)
lib/Transforms/Vectorize/SLPVectorizer.cpp | ||
---|---|---|
3112 ↗ | (On Diff #158534) | Please add a test for the case where NeedToShuffleReuses is true and E->ReorderIndices.empty() is false. |
lib/Transforms/Vectorize/SLPVectorizer.cpp | ||
---|---|---|
3112 ↗ | (On Diff #158534) | We already have that kind of test X86/vectorize-reorder-reuse.ll, but I'll add another one. |