This is an archive of the discontinued LLVM Phabricator instance.

[SLP][NFC] Make buildShuffleEntryMask routine a TreeEntry method.
ClosedPublic

Authored by vdmitrie on Aug 9 2023, 1:10 PM.

Details

Summary

The routine uses data stored at TreeEntry node for building a mask
so it is natural to make it a method for the type. That will simplify
its interface and reduces data transfer.
The method is added as buildAltOpShuffleMask.

Diff Detail

Event Timeline

vdmitrie created this revision.Aug 9 2023, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2023, 1:10 PM
vdmitrie requested review of this revision.Aug 9 2023, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2023, 1:10 PM
ABataev added inline comments.Aug 9 2023, 1:12 PM
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
8051

Formatting

vdmitrie updated this revision to Diff 548756.Aug 9 2023, 1:23 PM

fixed formatting

vdmitrie marked an inline comment as done.Aug 9 2023, 1:27 PM
vdmitrie added inline comments.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
8051

Thanks. Missed that at conflict resolution.

This revision is now accepted and ready to land.Aug 9 2023, 1:29 PM
This revision was landed with ongoing or failed builds.Aug 9 2023, 1:50 PM
This revision was automatically updated to reflect the committed changes.
vdmitrie marked an inline comment as done.