[deadargelim] Attach dbg info to the insert/extractvalue instructions
authorDjordje Todorovic <djordje.todorovic@syrmia.com>
Tue, 14 Jul 2020 06:49:01 +0000 (08:49 +0200)
committerDjordje Todorovic <djolertrk@gmail.com>
Tue, 14 Jul 2020 06:52:04 +0000 (08:52 +0200)
commit1af8c93bab4b5ccf64fa64406f5e5712c1d54998
treea3d254215b928df3380700b5da8ee97a94583c1f
parent74c14202d90b46dda64a2542602855727b7d7f60
[deadargelim] Attach dbg info to the insert/extractvalue instructions

Attach DbgLoc on insertvalue/extractvalue instructions created by
DeadArgumentElimination.

This fixes the PR46350.

Differential Revision: https://reviews.llvm.org/D81939
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
llvm/test/DebugInfo/X86/dbgloc-insert-extract-val-instrs.ll [new file with mode: 0644]