[PATCH] D135847: [PowerPC] don't check CTR clobber in hardware loop insertion pass

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 20:37:17 PDT 2022


shchenz created this revision.
shchenz added reviewers: PowerPC, nemanjai, lkail.
Herald added subscribers: kbarton, hiraditya.
Herald added a project: All.
shchenz requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

We added a new post-isel CTRLoop pass in D122125 <https://reviews.llvm.org/D122125>. That pass will expand the hardware loop related intrinsic to CTR loop or normal loop based on the loop context.

So we don't need to conservatively check the CTR clobber now on the IR level.

As expected, now, more CTR loops are generated.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135847

Files:
  llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  llvm/test/CodeGen/PowerPC/branch-opt.ll
  llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll
  llvm/test/CodeGen/PowerPC/ctrloop-fp128.ll
  llvm/test/CodeGen/PowerPC/ctrloop-sh.ll
  llvm/test/CodeGen/PowerPC/disable-ctr-ppcf128.ll
  llvm/test/CodeGen/PowerPC/hardware-loops-crash.ll
  llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll
  llvm/test/CodeGen/PowerPC/pr36292.ll
  llvm/test/CodeGen/PowerPC/pr43527.ll
  llvm/test/CodeGen/PowerPC/pr48519.ll
  llvm/test/CodeGen/PowerPC/pr55463.ll
  llvm/test/CodeGen/PowerPC/spe.ll
  llvm/test/CodeGen/PowerPC/tocSaveInPrologue.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135847.467354.patch
Type: text/x-patch
Size: 55544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221013/ab9aff50/attachment.bin>


More information about the llvm-commits mailing list