[DebugInfo] Avoid the call site param for mem instrs with multiple defs
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>
Wed, 5 Feb 2020 08:50:05 +0000 (09:50 +0100)
committerDjordje Todorovic <djordje.todorovic@rt-rk.com>
Wed, 5 Feb 2020 09:03:14 +0000 (10:03 +0100)
commitde90d73e030c5c98d7557c8bbf9b60b4b0e209cc
treeced2ee1ca5547210de7f8f24b9495fee819646f9
parent6e8d6bc9ec8739ec22b73a23f740f171f452e234
[DebugInfo] Avoid the call site param for mem instrs with multiple defs

We currently only handle mem instructions with a single define.
Avoid the call site parameter debug info when we find the case with
multiple defs, rather than throwing an assert.

Differential Revision: https://reviews.llvm.org/D73954
llvm/lib/CodeGen/TargetInstrInfo.cpp
llvm/test/DebugInfo/MIR/X86/dbg-call-site-spilled-arg-multiple-defs.mir [new file with mode: 0644]