[PATCH] D121109: [AArch64] Add cost model for llvm.get.active.lane.mask intrinsic

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 05:06:40 PST 2022


david-arm created this revision.
david-arm added reviewers: sdesmalen, CarolineConcatto, dmgreen, kmclaughlin.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls.
Herald added a project: All.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The vectoriser sometimes generates predicated vector loops using
the llvm.get.active.lane.mask intrinsic so it's important that we
are able to calculate a valid cost for the call instruction. When
SVE is enabled we are able to use a single whilelo instruction
for some vector types - in such cases I've marked the cost as 1.
For all other cases I've set the cost to some reasonably high
value.

Tests added here:

  Analysis/CostModel/AArch64/sve-intrinsics.ll


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121109

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/AArch64/sve-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121109.413435.patch
Type: text/x-patch
Size: 8581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220307/d5accdbb/attachment.bin>


More information about the llvm-commits mailing list