[all-commits] [llvm/llvm-project] ddd380: [AMDGPU] Use new target MMO flag MONoClobber

Jay Foad via All-commits all-commits at lists.llvm.org
Wed Feb 2 09:12:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ddd3807e6952dedfd842b3b10076a614f75c1979
      https://github.com/llvm/llvm-project/commit/ddd3807e6952dedfd842b3b10076a614f75c1979
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.h
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.h
    M llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgpu_kernel.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-call.ll
    M llvm/test/CodeGen/AMDGPU/annotate-noclobber.ll
    M llvm/test/CodeGen/AMDGPU/global_smrd.ll
    M llvm/test/CodeGen/AMDGPU/noclobber-barrier.ll
    A llvm/test/CodeGen/MIR/AMDGPU/target-memoperands.mir

  Log Message:
  -----------
  [AMDGPU] Use new target MMO flag MONoClobber

This allows us to set the noclobber flag on (the MMO of) a load
instruction instead of on the pointer. This fixes a bug where noclobber
was being applied to all loads from the same pointer, even if some of
them were clobbered.

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




More information about the All-commits mailing list