[all-commits] [llvm/llvm-project] a35013: [AMDGPU][GFX11] Mitigate VALU mask write hazard

Carl Ritson via All-commits all-commits at lists.llvm.org
Sat Oct 1 00:49:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a35013bec68db2cc3760c693dc4cb080f312396a
      https://github.com/llvm/llvm-project/commit/a35013bec68db2cc3760c693dc4cb080f312396a
  Author: Carl Ritson <carl.ritson at amd.com>
  Date:   2022-10-01 (Sat, 01 Oct 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
    M llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h
    M llvm/lib/Target/AMDGPU/GCNSubtarget.h
    A llvm/test/CodeGen/AMDGPU/valu-mask-write-hazard.mir

  Log Message:
  -----------
  [AMDGPU][GFX11] Mitigate VALU mask write hazard

VALU use of an SGPR (pair) as mask followed by SALU write to the
same SGPR can cause incorrect execution of subsequent SALU reads
of the SGPR.

Reviewed By: foad, rampitec

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




More information about the All-commits mailing list