OSDN Git Service

[X86] Fix the merging of SP updates in prologue/epilogue insertions.
authorQuentin Colombet <qcolombet@apple.com>
Tue, 2 Feb 2016 20:11:17 +0000 (20:11 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 2 Feb 2016 20:11:17 +0000 (20:11 +0000)
commitbcbd53a9e8feeef3243b4901296cd59f1085430a
treee0ae8e8f335ce54c04b1501564b0c11a2d28ad54
parent34a1c16a99e0d134cb152d3c568b01aa8ea99c62
[X86] Fix the merging of SP updates in prologue/epilogue insertions.
When the merging was involving LEAs, we were taking the wrong immediate
from the list of operands.

rdar://problem/24446069

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259553 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
test/CodeGen/X86/merge-sp-update-lea.ll [new file with mode: 0644]