[PATCH] D137423: [PowerPC][WIP] make expensive mflr be awfy from its user in the function prologue

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 4 07:16:09 PDT 2022


shchenz created this revision.
shchenz added reviewers: RolandF, nemanjai, PowerPC.
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.

`mflr` is kind of expensive on Power version smaller than 10, so we should schedule the store for the mflr's def away from `mflr`.

In epilogue, the expensive `mtlr` has user for its def, so it doesn't matter that the load and the `mtlr` are back-to-back.

There are more 120+ LIT failures. Before I fix them all, could you please help to review the change in the prologue generation?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137423

Files:
  llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
  llvm/test/CodeGen/PowerPC/pr33547.ll
  llvm/test/CodeGen/PowerPC/pr36292.ll
  llvm/test/CodeGen/PowerPC/pr41088.ll
  llvm/test/CodeGen/PowerPC/pr43527.ll
  llvm/test/CodeGen/PowerPC/pr43976.ll
  llvm/test/CodeGen/PowerPC/pr44183.ll
  llvm/test/CodeGen/PowerPC/pr45301.ll
  llvm/test/CodeGen/PowerPC/pr45432.ll
  llvm/test/CodeGen/PowerPC/pr47373.ll
  llvm/test/CodeGen/PowerPC/pr48519.ll
  llvm/test/CodeGen/PowerPC/pr48527.ll
  llvm/test/CodeGen/PowerPC/pr49092.ll
  llvm/test/CodeGen/PowerPC/pr55463.ll
  llvm/test/CodeGen/PowerPC/pr56469.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137423.473225.patch
Type: text/x-patch
Size: 14190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221104/54ae4efe/attachment-0001.bin>


More information about the llvm-commits mailing list