[PATCH] D115424: [PowerPC] Do not increase cost for getUserCost with MMA types

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 8 21:47:07 PST 2021


nemanjai created this revision.
nemanjai added reviewers: amyk, PowerPC.
Herald added subscribers: shchenz, zzheng, kbarton, hiraditya.
nemanjai requested review of this revision.
Herald added a project: LLVM.

Commit 150681f <https://reviews.llvm.org/rG150681f2f3220ee6e00377cdcc0c97ee0abc63ba> increases
cost of producing MMA types (vector pair and quad).
However, it increases the cost for getUserCost() which is
used in unrolling. As a result, loops that contain these
types already (from the user code) cannot be unrolled
(even with the user's unroll pragma). This was an unintended
sideeffect. Reverting that portion of the commit to allow
unrolling such loops.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115424

Files:
  llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  llvm/test/Transforms/LoopUnroll/PowerPC/p10-respect-unroll-pragma.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115424.393026.patch
Type: text/x-patch
Size: 13246 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211209/1c3a04b0/attachment.bin>


More information about the llvm-commits mailing list