[PATCH] D113100: [AMDGPU] Do not add debug locations to the code inside prologue

Venkata Ramanaiah Nalamothu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 3 06:11:52 PDT 2021


RamNalamothu created this revision.
RamNalamothu added reviewers: scott.linder, arsenm, kzhuravl, sebastian-ne.
Herald added subscribers: foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, nhaehnle, jvesely.
RamNalamothu requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

There is no real source location for code inside prologue as it is
generated by compiler but source locations are being added to code
inside prologue as a side effect of https://reviews.llvm.org/D99269
because buildSpillLoadStore() is using source location of the real
instruction in the basic block if any.

Fixes: SWDEV-307590


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113100

Files:
  llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
  llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
  llvm/lib/Target/AMDGPU/SIRegisterInfo.h
  llvm/test/CodeGen/AMDGPU/no-source-locations-in-prologue.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113100.384413.patch
Type: text/x-patch
Size: 13320 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211103/c8b89e9f/attachment.bin>


More information about the llvm-commits mailing list