[PATCH] D94464: [PowerPC] Duplicate inherited heuristic from base scheduler

Qiu Chaofan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 19:19:37 PST 2021


qiucf created this revision.
qiucf added reviewers: PowerPC, jsji, steven.zhang.
Herald added subscribers: shchenz, asbirlea, javed.absar, kbarton, hiraditya, nemanjai, MatzeB.
qiucf requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

PowerPC has its custom scheduler heuristic. It calls parent classes' `tryCandidate` in override version, but the function returns void, so this way doesn't actually help.

This patch duplicates code from base scheduler into PPC machine scheduler class, which does what we wanted. And this should make D86684 <https://reviews.llvm.org/D86684> an NFC.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94464

Files:
  llvm/lib/Target/PowerPC/PPCMachineScheduler.cpp
  llvm/test/CodeGen/PowerPC/botheightreduce.mir
  llvm/test/CodeGen/PowerPC/loop-instr-form-prepare.ll
  llvm/test/CodeGen/PowerPC/lsr-ctrloop.ll
  llvm/test/CodeGen/PowerPC/mma-intrinsics.ll
  llvm/test/CodeGen/PowerPC/mma-phi-accs.ll
  llvm/test/CodeGen/PowerPC/more-dq-form-prepare.ll
  llvm/test/CodeGen/PowerPC/rematerializable-instruction-machine-licm.ll
  llvm/test/CodeGen/PowerPC/sched-addi.ll
  llvm/test/CodeGen/PowerPC/sms-cpy-1.ll
  llvm/test/CodeGen/PowerPC/sms-phi-1.ll
  llvm/test/CodeGen/PowerPC/sms-simple.ll
  llvm/test/CodeGen/PowerPC/stack-clash-dynamic-alloca.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94464.315979.patch
Type: text/x-patch
Size: 49041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210112/84128b9b/attachment.bin>


More information about the llvm-commits mailing list