[all-commits] [llvm/llvm-project] c87c61: [AMDGPU] Fix AGPR offset for waitcnt

Joe Nash via All-commits all-commits at lists.llvm.org
Mon Feb 14 12:38:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c87c61c52cad32576597fb6de764863f21b2ee7e
      https://github.com/llvm/llvm-project/commit/c87c61c52cad32576597fb6de764863f21b2ee7e
  Author: Joe Nash <Joseph.Nash at amd.com>
  Date:   2022-02-14 (Mon, 14 Feb 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
    M llvm/test/CodeGen/AMDGPU/waitcnt-agpr.mir

  Log Message:
  -----------
  [AMDGPU] Fix AGPR offset for waitcnt

An enum value stores the offset between AGPR ranges and VGPR
ranges in the internal storage of SIInsertWaitcnts. It said 226 when
it should say 256, causing some portion of the ranges to overlap. That
in turn causes 'aliasing' between the registers, potentially inserting
waitcnts that are not required.

Reviewed By: rampitec

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




More information about the All-commits mailing list