[PATCH] D118775: [AMDGPU] Use new target MMO flag MONoClobber

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 2 04:08:10 PST 2022


foad created this revision.
foad added reviewers: arsenm, rampitec, alex-t, critson.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118775

Files:
  llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
  llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  llvm/lib/Target/AMDGPU/SIISelLowering.cpp
  llvm/lib/Target/AMDGPU/SIISelLowering.h
  llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
  llvm/lib/Target/AMDGPU/SIInstrInfo.h
  llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgpu_kernel.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-call.ll
  llvm/test/CodeGen/AMDGPU/annotate-noclobber.ll
  llvm/test/CodeGen/AMDGPU/global_smrd.ll
  llvm/test/CodeGen/AMDGPU/noclobber-barrier.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118775.405208.patch
Type: text/x-patch
Size: 31972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220202/41376b62/attachment.bin>


More information about the llvm-commits mailing list