[all-commits] [llvm/llvm-project] 2ca194: [AMDGPU] Fix scheduler live-ins with debug inst at...

vangthao95 via All-commits all-commits at lists.llvm.org
Thu Feb 3 12:47:31 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ca194ff55632a98cf1f821564ed998ffe19945f
      https://github.com/llvm/llvm-project/commit/2ca194ff55632a98cf1f821564ed998ffe19945f
  Author: Vang Thao <Vang.Thao at amd.com>
  Date:   2022-02-03 (Thu, 03 Feb 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
    A llvm/test/CodeGen/AMDGPU/debug-value-scheduler-liveins.mir

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

GCNDownwardRPTracker RPTracker.reset() skips debug instructions for NextMI so RPTracker.getNext() will never 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.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D118853




More information about the All-commits mailing list