[all-commits] [llvm/llvm-project] 5c3805: [AMDGPU][Scheduler] Avoid initializing Register pr...

Anshil Gandhi via All-commits all-commits at lists.llvm.org
Thu Jul 28 14:40:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c380564317ce90caebb2aeef44d1dbe28fb7ae6
      https://github.com/llvm/llvm-project/commit/5c380564317ce90caebb2aeef44d1dbe28fb7ae6
  Author: Anshil Gandhi <Anshil.Gandhi at amd.com>
  Date:   2022-07-28 (Thu, 28 Jul 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
    M llvm/test/CodeGen/AMDGPU/schedule-regpressure.mir

  Log Message:
  -----------
  [AMDGPU][Scheduler] Avoid initializing Register pressure tracker when tracking is disabled

When register pressure tracking is disabled, the scheduler attempts to load
pressures at SReg_32 and VGPR_32. This causes an index out of bounds error.
This patch fixes this issue by disabling the initialization of RPTracker
when not needed. NFC

Reviewed By: rampitec, kerbowa, arsenm

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




More information about the All-commits mailing list