[PATCH] D91984: [CostModel] Add basic implementation of getGatherScatterOpCost.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 11:01:04 PST 2020

fhahn created this revision.
fhahn added reviewers: dmgreen, RKSimon, spatel, anton-afanasyev.
Herald added a subscriber: kristof.beyls.
Herald added a project: LLVM.
fhahn requested review of this revision.

Add a basic implementation of getGatherScatterOpCost to BasicTTIImpl.

The implementation estimates the cost of scalarizing the loads/stores,
the cost of packing/extracting the individual lanes and the cost of
only selecting enabled lanes.

This more accurately reflects the current cost on targets like AArch64.

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91984.307125.patch
Type: text/x-patch
Size: 16409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201123/ce4b8129/attachment.bin>

More information about the llvm-commits mailing list