This is an archive of the discontinued LLVM Phabricator instance.

[TTI]Add InsertSubvector pattern in improveShuffleKindFromMask().
ClosedPublic

Authored by ABataev on Aug 8 2023, 11:45 AM.

Details

Summary

It improves shuffle instructions estimation and improves vectorization
outcome.

Diff Detail

Event Timeline

ABataev created this revision.Aug 8 2023, 11:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2023, 11:45 AM
ABataev requested review of this revision.Aug 8 2023, 11:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2023, 11:45 AM
RKSimon added inline comments.Aug 15 2023, 3:50 AM
llvm/include/llvm/CodeGen/BasicTTIImpl.h
937

VectorType *&SubTy

955

Probably better to pass the whole Vector/Result and then use:

SubTy = FixedVectorType::get(Ty->getElementType(), NumSubElts);
ABataev updated this revision to Diff 550300.Aug 15 2023, 6:01 AM

Rebase, address comments

RKSimon accepted this revision.Aug 18 2023, 7:38 AM

LGTM

This revision is now accepted and ready to land.Aug 18 2023, 7:38 AM
This revision was landed with ongoing or failed builds.Aug 18 2023, 1:47 PM
This revision was automatically updated to reflect the committed changes.