[PATCH] D120773: [AArch64] Shifts cost 1

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 1 14:06:47 PST 2022


dmgreen created this revision.
dmgreen added reviewers: sdesmalen, jaykang10, samtebbs, fhahn.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

The costs of shifts was 2 as opposed to 1, as the nodes are marked custom. Fix this like the others and mark the nodes as cheap.


https://reviews.llvm.org/D120773

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/AArch64/arith-overflow.ll
  llvm/test/Analysis/CostModel/AArch64/arith.ll
  llvm/test/Analysis/CostModel/AArch64/div.ll
  llvm/test/Analysis/CostModel/AArch64/div_cte.ll
  llvm/test/Transforms/SLPVectorizer/AArch64/gather-cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120773.412247.patch
Type: text/x-patch
Size: 59643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220301/6a9a6149/attachment-0001.bin>


More information about the llvm-commits mailing list