This is an archive of the discontinued LLVM Phabricator instance.

[SLPVectorizer] Remove RawInstructionsData/getMainOpcode and merge into getSameOpcode
ClosedPublic

Authored by RKSimon on Jun 13 2018, 6:14 AM.

Details

Summary

This is part of the work to cleanup use of 'alternate' ops so we can use the more general SK_Select shuffle type.

Only getSameOpcode calls getMainOpcode and much of the logic is repeated in both functions. This will require some reworking of D28907 but that patch has hit trouble and is unlikely to be completed anytime soon.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Jun 13 2018, 6:14 AM

looks good for me.

This revision is now accepted and ready to land.Jun 14 2018, 3:10 AM
This revision was automatically updated to reflect the committed changes.