This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Improve/fix reodering for gather nodes with extractelements/undefs.
ClosedPublic

Authored by ABataev on Dec 8 2021, 8:56 AM.

Details

Summary

If the gather node is a mix of undefvalues and exractelement
instructions, need to take the ordering for such nodes into account too.
It allows to reorder some (sub)trees and remove some extra shuffles,
improving overall vectorization.

Diff Detail

Event Timeline

ABataev created this revision.Dec 8 2021, 8:56 AM
ABataev requested review of this revision.Dec 8 2021, 8:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2021, 8:56 AM
ABataev updated this revision to Diff 393579.Dec 10 2021, 1:19 PM

Outlined common functionality into a separate function.

RKSimon accepted this revision.Dec 13 2021, 7:43 AM

LGTM

This revision is now accepted and ready to land.Dec 13 2021, 7:43 AM
This revision was landed with ongoing or failed builds.Dec 13 2021, 11:03 AM
This revision was automatically updated to reflect the committed changes.