This is an archive of the discontinued LLVM Phabricator instance.

[SVE][NFC] Add SVE cost model tests for gathers/scatters
ClosedPublic

Authored by david-arm on Sep 1 2021, 5:17 AM.

Details

Summary

We previously didn't have any tests to defend the cost model
for gathers and scatters using SVE without a vscale_range
attribute. I've added tests to existing files:

Analysis/CostModel/AArch64/sve-gather.ll
Analysis/CostModel/AArch64/sve-scatter.ll

Diff Detail

Event Timeline

david-arm created this revision.Sep 1 2021, 5:17 AM
david-arm requested review of this revision.Sep 1 2021, 5:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2021, 5:17 AM
Matt added a subscriber: Matt.Sep 1 2021, 7:53 AM
david-arm updated this revision to Diff 370504.Sep 3 2021, 1:23 AM
david-arm edited the summary of this revision. (Show Details)
  • Moved the new gather/scatter cost model tests to a more appropriate place.
sdesmalen accepted this revision.Sep 7 2021, 3:15 AM
sdesmalen added inline comments.
llvm/test/Analysis/CostModel/AArch64/sve-gather.ll
22

nit: I'd suggest making them lower-case like in the test above (%res.nxv4f64)

This revision is now accepted and ready to land.Sep 7 2021, 3:15 AM
This revision was landed with ongoing or failed builds.Sep 7 2021, 6:13 AM
This revision was automatically updated to reflect the committed changes.