This is an archive of the discontinued LLVM Phabricator instance.

[SLP][TTI][X86] Implement addsub cost calculation.
Needs ReviewPublic

Authored by vporpo on May 25 2022, 4:30 PM.

Details

Summary

This patch adds support for the addsub instructions in SLP's getEntryCost().
This relies on extending TTI->getShuffleCost() to return the correct cost
for such instructions.

Diff Detail

Event Timeline

vporpo created this revision.May 25 2022, 4:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2022, 4:30 PM
vporpo requested review of this revision.May 25 2022, 4:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2022, 4:30 PM
vporpo updated this revision to Diff 432432.May 26 2022, 5:46 PM

Moved the cost calculation code from getShuffleCost() to a separate function: getAltInstrCost().