[PATCH] D98210: [ARM] Add VREV MVE shuffle costs

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 8 12:05:55 PST 2021


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, NickGuy, samtebbs, spatel, RKSimon, fhahn, sdesmalen.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This uses the shuffle mask cost from D98206 <https://reviews.llvm.org/D98206> to give a better cost of MVE VREV instructions. This helps especially in VectorCombine where the cost of shuffles is used to reorder bitcasts, which this helps improve/refix the phase ordering test for fp16 reductions from intrinsics. The isVREVMask has been moved to a header file to allow it to be used across target transform and isel lowering.


https://reviews.llvm.org/D98210

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/lib/Target/ARM/ARMTargetTransformInfo.h
  llvm/test/Analysis/CostModel/ARM/shuffle.ll
  llvm/test/Transforms/PhaseOrdering/ARM/mve-floatreduce.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98210.329090.patch
Type: text/x-patch
Size: 20029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210308/78b31263/attachment.bin>


More information about the llvm-commits mailing list