[X86] Do not generate 64-bit pops of 32-bit GPRs.
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 16 Sep 2015 11:27:20 +0000 (11:27 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 16 Sep 2015 11:27:20 +0000 (11:27 +0000)
commit196a1036c4a0487225e4ee9dd7ce71654a8159eb
tree7f0c63361c62365a53f0f8d2a87859ab1c25d90f
parentb82c32333bd85e18a0992044c33295130dccd178
[X86] Do not generate 64-bit pops of 32-bit GPRs.

When trying emit a stack adjustments using pops, frame lowering selects an
arbitrary free GPR. It should always select one from an appropriate class...
This fixes PR24649.

Patch by: amjad.aboud@intel.com
Differential Revision: http://reviews.llvm.org/D12609

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247785 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
test/CodeGen/X86/pop-stack-cleanup.ll