[PATCH] D82456: [ARM] Use BaseT::getMemoryOpCost for getMemoryOpCost
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 24 05:54:50 PDT 2020
dmgreen created this revision.
dmgreen added reviewers: samparker, SjoerdMeijer, efriedma, ostannard.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
This alters getMemoryOpCost to use the Base TargetTransformInfo version that includes some additional checks for whether extending loads are legal. This will generally have the effect of making <2 x ..> and some <4 x ..> loads/stores more expensive, which in turn should help favour larger vector factors.
Notably it alters the cost of a <4 x half>, which with the current codegen will be expensive if it is not extended.
https://reviews.llvm.org/D82456
Files:
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/cast.ll
llvm/test/Analysis/CostModel/ARM/load_store.ll
llvm/test/Transforms/LoopVectorize/ARM/prefer-tail-loop-folding.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82456.272986.patch
Type: text/x-patch
Size: 28598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200624/0faba398/attachment.bin>
More information about the llvm-commits
mailing list