[PATCH] D100334: [CSSPGO] Exclude pseudo probes from slot index

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 12 12:04:24 PDT 2021


hoy created this revision.
Herald added subscribers: wenlei, ecnelises, tpr, arphaman, javed.absar, hiraditya, qcolombet, MatzeB.
hoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Pseudo probe are currently given a slot index like other regular instructions. This affects register pressure and lifetime weight computation because of enlarged lifetime length with pseudo probe instructions. As a consequence, program could get different code generated w/ and w/o pseudo probes. I'm closing the gap by excluding pseudo probes from stack index and downstream register allocation related passes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100334

Files:
  llvm/lib/CodeGen/LiveDebugVariables.cpp
  llvm/lib/CodeGen/LiveIntervals.cpp
  llvm/lib/CodeGen/LiveRangeShrink.cpp
  llvm/lib/CodeGen/LiveVariables.cpp
  llvm/lib/CodeGen/MachineBasicBlock.cpp
  llvm/lib/CodeGen/MachineScheduler.cpp
  llvm/lib/CodeGen/MachineSink.cpp
  llvm/lib/CodeGen/RegAllocGreedy.cpp
  llvm/lib/CodeGen/RegisterCoalescer.cpp
  llvm/lib/CodeGen/RegisterPressure.cpp
  llvm/lib/CodeGen/RegisterScavenging.cpp
  llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
  llvm/lib/CodeGen/SlotIndexes.cpp
  llvm/lib/CodeGen/SplitKit.cpp
  llvm/test/Transforms/SampleProfile/pseudo-probe-slotindex.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100334.336922.patch
Type: text/x-patch
Size: 14448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210412/ba9a3745/attachment.bin>


More information about the llvm-commits mailing list