Enable shrink wrapping for PPC64
authorKit Barton <kbarton@ca.ibm.com>
Mon, 30 Nov 2015 18:59:41 +0000 (18:59 +0000)
committerKit Barton <kbarton@ca.ibm.com>
Mon, 30 Nov 2015 18:59:41 +0000 (18:59 +0000)
commit56faeb049c0b274ed12267ef74aed60d290be60f
tree1aee455b7fa2f6b09472df860985acd8fa9e4886
parente87f0932d94a1bb29c7d4792adf8742ca165c4ef
Enable shrink wrapping for PPC64

Re-enable shrink wrapping for PPC64 Little Endian.

One minor modification to PPCFrameLowering::findScratchRegister was necessary to handle fall-thru blocks (blocks with no terminator) correctly.

Tested with all LLVM test, clang tests, and the self-hosting build, with no problems found.

PHabricator: http://reviews.llvm.org/D14778

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254314 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFrameLowering.cpp
test/CodeGen/PowerPC/ppc-shrink-wrapping.ll