OSDN Git Service

[framelowering] Skip dbg values when getting next/previous instruction.
authorFlorian Hahn <florian.hahn@arm.com>
Wed, 4 Jan 2017 12:08:35 +0000 (12:08 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Wed, 4 Jan 2017 12:08:35 +0000 (12:08 +0000)
commit8e285bfc4f79be8265c8550b41ddfc82fc37227d
tree9a48a320fb9e7abdb0c925f23aec4c0743df7acb
parentda53be3666677533582b618470f34a9b5b8faf39
[framelowering] Skip dbg values when getting next/previous instruction.

Summary:
In mergeSPUpdates, debug values need to be ignored when getting the
previous element, otherwise debug data could have an impact on codegen.

In eliminateCallFramePseudoInstr, debug values after the erased element
could have an impact on codegen and should be skipped.

Closes PR31319 (https://llvm.org/bugs/show_bug.cgi?id=31319)

Reviewers: aprantl, MatzeB, mkuper

Subscribers: gbedwell, llvm-commits

Differential Revision: https://reviews.llvm.org/D27688

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290955 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
test/CodeGen/X86/frame-lowering-debug-intrinsic-2.ll [new file with mode: 0644]
test/CodeGen/X86/frame-lowering-debug-intrinsic.ll
test/DebugInfo/X86/dbg-value-frame-index.ll [new file with mode: 0644]