This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Improve isFixedVectorShuffle and its use.
ClosedPublic

Authored by ABataev on Nov 17 2021, 1:46 PM.

Details

Summary

Extended support for undefined source vector/extract indices/non-fixed
vector types, also no need to check for the parent of the extractelement
instructions with the constant indicies.

Diff Detail

Event Timeline

ABataev created this revision.Nov 17 2021, 1:46 PM
ABataev requested review of this revision.Nov 17 2021, 1:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2021, 1:46 PM
RKSimon added inline comments.Nov 18 2021, 9:20 AM
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
4506

Can we use "isa<ExtractElementInst,UndefValue>(V)" here?

ABataev added inline comments.Nov 18 2021, 9:25 AM
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
4506

Sure, will do

ABataev updated this revision to Diff 388244.Nov 18 2021, 9:46 AM

Address comments.

RKSimon accepted this revision.Nov 30 2021, 8:29 AM

LGTM - cheers

This revision is now accepted and ready to land.Nov 30 2021, 8:29 AM
This revision was landed with ongoing or failed builds.Nov 30 2021, 10:25 AM
This revision was automatically updated to reflect the committed changes.