[X86] Skip over DEBUG_VALUE while looking for start of call sequence
authorMichael Kuperstein <mkuper@google.com>
Wed, 7 Dec 2016 19:31:08 +0000 (19:31 +0000)
committerMichael Kuperstein <mkuper@google.com>
Wed, 7 Dec 2016 19:31:08 +0000 (19:31 +0000)
commit5842b20633ef3b244a2d583cf0d209b4ea57a911
treea22704a232eddf73ba257fd399365467a8fae2ff
parent18092cf2c30efe6f4021b6ab29a581e172fa898d
[X86] Skip over DEBUG_VALUE while looking for start of call sequence

If we don't skip over DEBUG_VALUEs, we get differences between -g and non-g
code.

This fixes PR31242.

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

llvm-svn: 288965
llvm/lib/Target/X86/X86CallFrameOptimization.cpp
llvm/test/CodeGen/X86/pr31242.ll [new file with mode: 0644]