[PATCH] D157012: AMDGPU/GlobalISel: insert readfirstlane on SGPR inlineasm copy

Vigneshwar Jayakumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 10:10:01 PDT 2023


vjayakum created this revision.
vjayakum added reviewers: arsenm, bcahoon.
vjayakum added a project: AMDGPU.
Herald added subscribers: foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
vjayakum requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

There are some copies from VGPR to SGPR while inlineasm lowering which causes illegal copy.
Inserting a readfirstlane for SGPR copy to avoid producing an illegal copy later incase the copy is from VGPR to SGPR


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157012

Files:
  llvm/include/llvm/CodeGen/GlobalISel/InlineAsmLowering.h
  llvm/lib/CodeGen/GlobalISel/InlineAsmLowering.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInlineAsmLowering.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInlineAsmLowering.h
  llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  llvm/lib/Target/AMDGPU/CMakeLists.txt
  llvm/lib/Target/AMDGPU/GCNSubtarget.h
  llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-inline-asm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157012.546916.patch
Type: text/x-patch
Size: 11481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230803/c9898ad5/attachment.bin>


More information about the llvm-commits mailing list