Should fix https://llvm.org/bugs/show_bug.cgi?id=25247
Still a draft, I'll update with a test case but I'd like a first feedback on the change.
Paths
| Differential D13996
Fix SLPVectorizer commutativity reordering ClosedPublic Authored by mehdi_amini on Oct 22 2015, 2:36 PM.
Details
Summary Should fix https://llvm.org/bugs/show_bug.cgi?id=25247 Still a draft, I'll update with a test case but I'd like a first feedback on the change.
Diff Detail Event Timelinemehdi_amini updated this object. Comment Actions Hi Mehdi, Would it be possible to split it to two patches: one with factoring out shouldReorderOperands function, and the other with functional change? It would be easier to review (No worries if it's not possible). Thanks, mehdi_amini edited edge metadata. Comment ActionsPatch update after NFC refactoring applied to trunk. mzolotukhin edited edge metadata. Comment ActionsHi Mehdi, The change looks good to me provided a test would be added. Thanks,
This revision is now accepted and ready to land.Oct 23 2015, 12:10 PM Comment Actions Hi Mehdi, As before, the code looks good to me, some comments on the test are inline. Thanks,
Comment Actions Hi Mehdi, Thanks for adding the tests! LGTM modulo a couple of nitpicks. Michael
Revision Contents
Diff 39535 lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/commutativity.ll
|
nitpick: Symmetrically with double 'm'?