[all-commits] [llvm/llvm-project] dec74a: [AMDGPU] Fix VS_CNT overflow assertion (#77935)

Jay Foad via All-commits all-commits at lists.llvm.org
Fri Jan 12 09:11:31 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dec74a834700d0cc5aecc570aca464b1cdffce66
      https://github.com/llvm/llvm-project/commit/dec74a834700d0cc5aecc570aca464b1cdffce66
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2024-01-12 (Fri, 12 Jan 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
    A llvm/test/CodeGen/AMDGPU/insert-waitcnts-crash.ll

  Log Message:
  -----------
  [AMDGPU] Fix VS_CNT overflow assertion (#77935)

Always set the upper bound for VS_CNT higher than the lower bound.
Before #77439 this code was only executed on function entry where the
lower bound was 0 so it was not a problem.

Fixes #77931




More information about the All-commits mailing list