[PATCH] D92471: [CSInfo][ISEL] Do not create CSInfo for undef arguments

Nikola Tesic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 2 02:12:52 PST 2020


ntesic created this revision.
ntesic added reviewers: aprantl, vsk, djtodoro, dstenb.
ntesic added a project: debug-info.
Herald added subscribers: llvm-commits, pengfei, ormris, atanasyan, hiraditya, sdardis.
Herald added a project: LLVM.
ntesic requested review of this revision.

If a function parameter is marked as "undef", prevent creation
of CallSiteInfo for that parameter, during the ISEL.
Without this patch, the parameter's call_site_value would be incorrect.
The incorrect call_value case reported in PR39716 <https://bugs.llvm.org/show_bug.cgi?id=39716>,
addressed in D85111 <https://reviews.llvm.org/D85111>.


https://reviews.llvm.org/D92471

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/lib/Target/Mips/MipsISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/AArch64/dbg-call-site-undef-params.ll
  llvm/test/CodeGen/ARM/dbg-call-site-undef-params.ll
  llvm/test/CodeGen/Mips/dbg-call-site-undef-params_32bit.ll
  llvm/test/CodeGen/Mips/dbg-call-site-undef-params_64bit.ll
  llvm/test/CodeGen/X86/dbg-call-site-undef-params.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92471.308917.patch
Type: text/x-patch
Size: 22192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201202/29a63d80/attachment.bin>


More information about the llvm-commits mailing list