This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Do not add debug locations to the code inside prologue
ClosedPublic

Authored by RamNalamothu on Nov 3 2021, 6:11 AM.

Details

Summary

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

Diff Detail

Event Timeline

RamNalamothu created this revision.Nov 3 2021, 6:11 AM
RamNalamothu requested review of this revision.Nov 3 2021, 6:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 3 2021, 6:11 AM
scott.linder accepted this revision.Nov 3 2021, 9:03 AM
This revision is now accepted and ready to land.Nov 3 2021, 9:03 AM
sebastian-ne accepted this revision.Nov 3 2021, 1:37 PM

Thanks, LGTM