[PATCH] D118853: [AMDGPU] Fix scheduler live-ins with debug inst at start of block

Vang Thao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 2 15:33:52 PST 2022


vangthao created this revision.
Herald added subscribers: foad, kerbowa, javed.absar, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
vangthao requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

GCNDownwardRPTracker RPTracker.reset() skips debug instructions for NextMI so RPTracker.getNext() will give the beginning of a sched region if it is a debug value. In this case we will never set the live-ins for that block.

Add check to see if getNext also equals the MI after skipping debug instructions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118853

Files:
  llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
  llvm/test/CodeGen/AMDGPU/debug-value-scheduler-liveins.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118853.405471.patch
Type: text/x-patch
Size: 5061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220202/9428abd1/attachment.bin>


More information about the llvm-commits mailing list