[all-commits] [llvm/llvm-project] a3ea90: [PowerPC] Do not increase cost for getUserCost wit...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Tue Dec 21 11:41:14 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a3ea9052d6a16b13607046df6a324403fb51888d
      https://github.com/llvm/llvm-project/commit/a3ea9052d6a16b13607046df6a324403fb51888d
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
    A llvm/test/Transforms/LoopUnroll/PowerPC/p10-respect-unroll-pragma.ll

  Log Message:
  -----------
  [PowerPC] Do not increase cost for getUserCost with MMA types

Commit 150681f 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.

Differential revision: https://reviews.llvm.org/D115424




More information about the All-commits mailing list