[PATCH] D38961: [PowerPC] Increase the user cost of vector instructions by their legalization cost

Brad Nemanich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 16 10:13:19 PDT 2017


bnemanich created this revision.
Herald added subscribers: kbarton, nemanjai.

The cost of splitting a large vector instruction is not being taken into account by the getUserCost function. This was leading to some loops being over unrolled. The cost of a vector instruction is now being multiplied by the cost of the type legalization. This will return a more accurate cost.


https://reviews.llvm.org/D38961

Files:
  lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  lib/Target/PowerPC/PPCTargetTransformInfo.h
  test/Transforms/LoopUnroll/PowerPC/p8-unrolling-legalize-vectors.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38961.119171.patch
Type: text/x-patch
Size: 5536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171016/0aa62cdc/attachment.bin>


More information about the llvm-commits mailing list