diff options
| author | Jeremy Morse <jeremy.morse.llvm@gmail.com> | 2019-04-12 09:47:35 +0000 |
|---|---|---|
| committer | Jeremy Morse <jeremy.morse.llvm@gmail.com> | 2019-04-12 09:47:35 +0000 |
| commit | 32afe6a1f8a5b1403a1db020d869816a97279854 (patch) | |
| tree | 7bd9492e0188d76bc4128ada413ce688d6edaba7 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
| parent | 138c76129bbe983ac7e49f141c41ec9514c17c39 (diff) | |
| download | bcm5719-llvm-32afe6a1f8a5b1403a1db020d869816a97279854.tar.gz bcm5719-llvm-32afe6a1f8a5b1403a1db020d869816a97279854.zip | |
[DebugInfo] Fix pr41175 Dead Store Elimination missing debug loc
Bug: https://bugs.llvm.org/show_bug.cgi?id=41175
In the bug test case the DSE pass is shortening the range of memory that a
memset is working on. A getelementptr is generated so that the new
starting address can be passed to memset. This instruction was not given
a DebugLoc.
To fix the bug, copy the DebugLoc from the memset instruction.
Patch by Orlando Cazalet-Hyams!
Differential Revision: https://reviews.llvm.org/D60556
llvm-svn: 358270
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
0 files changed, 0 insertions, 0 deletions

