[x86] Teach the shrink-wrapping hooks to do the proper thing with Win64.
authorQuentin Colombet <qcolombet@apple.com>
Wed, 4 Nov 2015 22:37:28 +0000 (22:37 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Wed, 4 Nov 2015 22:37:28 +0000 (22:37 +0000)
commitaa1e5aa9df2a6e3ceca10f03bef08962ff9c6606
treebe7ab9f06bfba6f33eb8cc5162b05ce1c8972604
parent4e036ff575c54e01aea7f8028d282974480b071e
[x86] Teach the shrink-wrapping hooks to do the proper thing with Win64.

Win64 has some strict requirements for the epilogue. As a result, we disable
shrink-wrapping for Win64 unless the block that gets the epilogue is already an
exit block.

Fixes PR24193.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252088 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
test/CodeGen/X86/x86-win64-shrink-wrapping.ll [new file with mode: 0644]