This change is part of https://reviews.llvm.org/D28907 .
Following change allows to reorder operand in vector like [ load, add, add, add ].
Paths
| Differential D36766
Reorder operands with provided Opcode ClosedPublic Authored by dtemirbulatov on Aug 15 2017, 1:50 PM.
Details Summary This change is part of https://reviews.llvm.org/D28907 . Following change allows to reorder operand in vector like [ load, add, add, add ].
Diff Detail Event TimelineComment Actions Please can you commit reorder.ll to trunk now with the current trunk codegen, and update the patch so it shows the delta? Comment Actions Also, again the tests looks more complex than they should need to be for slpvectorizer Comment Actions Thanks for reducing this, LGTM with one minor. Also, as this is just a refactor at this point (make sure you rephrase the commit summary accordingly btw) you can probably drop the test case as its not doing anything any more.
This revision is now accepted and ready to land.Aug 18 2017, 6:48 AM Closed by commit rL311221: [SLPVectorizer] Add opcode parameter to reorderAltShuffleOperands… (authored by dinar). · Explain WhyAug 18 2017, 7:55 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 111603 lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/reorder.ll
|
Tidyup (although I realise it increases the diff vs D28907):