[PATCH] D64510: AMDGPU: Don't rely on m0 being -1 for GWS offsets

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 09:59:47 PDT 2019


arsenm created this revision.
arsenm added reviewers: rampitec, b-sumner.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.

This only works if the high bits of m0 are also 0, so m0 would have to
be set to 0xffff.


https://reviews.llvm.org/D64510

Files:
  lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
  test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.barrier.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.init.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.sema.br.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.sema.p.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.sema.release.all.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.sema.v.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64510.208997.patch
Type: text/x-patch
Size: 12889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190710/51d341be/attachment.bin>


More information about the llvm-commits mailing list