This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Improve lookup of the buildvector top insertelement instruction.
ClosedPublic

Authored by ABataev on Aug 26 2022, 6:51 AM.

Details

Summary

When estimating the cost of the in-tree vectorized scalars in
buildvector sequences, need to take into account the vectorized
insertelement instruction. The top of the buildvector seuences is the
topmost vectorized insertelement instruction, because it will have
more than 1 use after the vectorization.

For the affected test case improves througput from 21 to 16 (per
llvm-mca).

Diff Detail

Event Timeline

ABataev created this revision.Aug 26 2022, 6:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 26 2022, 6:51 AM
ABataev requested review of this revision.Aug 26 2022, 6:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 26 2022, 6:51 AM
RKSimon edited the summary of this revision. (Show Details)Aug 26 2022, 7:11 AM
vdmitrie accepted this revision.Aug 26 2022, 4:03 PM

Looks good

This revision is now accepted and ready to land.Aug 26 2022, 4:03 PM