This is an archive of the discontinued LLVM Phabricator instance.

Don't combine splats with other shuffles.
ClosedPublic

Authored by efriedma on Dec 14 2016, 6:20 PM.

Details

Summary

We often end up creating shuffles which are worse than the obvious translation of the IR.

Depends on https://reviews.llvm.org/D27787 .

Fixes https://llvm.org/bugs/show_bug.cgi?id=31301 .

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma updated this revision to Diff 81518.Dec 14 2016, 6:20 PM
efriedma retitled this revision from to Don't combine splats with other shuffles..
efriedma updated this object.
efriedma added reviewers: mkuper, craig.topper, RKSimon.
efriedma set the repository for this revision to rL LLVM.
efriedma added a subscriber: llvm-commits.
RKSimon edited edge metadata.Dec 15 2016, 3:06 AM

This seems sensible to me, without a concept of "shuffle complexity" to drive the combine probably the best thing to do is wait until target specific combining.

mkuper accepted this revision.Dec 15 2016, 1:55 PM
mkuper edited edge metadata.

Looks sensible to me too.

This revision is now accepted and ready to land.Dec 15 2016, 1:55 PM
This revision was automatically updated to reflect the committed changes.