[PowerPC] Disable shrink wrapping
authorHal Finkel <hfinkel@anl.gov>
Wed, 30 Sep 2015 17:29:03 +0000 (17:29 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 30 Sep 2015 17:29:03 +0000 (17:29 +0000)
Shrink wrapping is causing a self-hosting failure on PPC64/Linux. Disable for
now until the problem can be fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248924 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCFrameLowering.cpp
test/CodeGen/PowerPC/ppc-shrink-wrapping.ll

index b0177086d8799f90de7686f6ab855ba6e42cd3bb..6d90710599eeae2431dd44ffa400e7866d333909 100644 (file)
@@ -1710,6 +1710,6 @@ PPCFrameLowering::restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
 }
 
 bool PPCFrameLowering::enableShrinkWrapping(const MachineFunction &MF) const {
-  return (MF.getSubtarget<PPCSubtarget>().isSVR4ABI() &&
-          MF.getSubtarget<PPCSubtarget>().isPPC64());
+  // FIXME: Enable this for non-Darwin PPC64 once it is confirmed working.
+  return false;
 }
index dac611f999b244d4ed6a020dcc16637c08b18ee1..9ce302d12c8e8213ca27a4727f59dae6c3494af0 100644 (file)
@@ -1,5 +1,6 @@
 ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=ENABLE
 ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu %s -o - -enable-shrink-wrap=false |  FileCheck %s --check-prefix=CHECK --check-prefix=DISABLE
+; XFAIL: *
 ;
 ; Note: Lots of tests use inline asm instead of regular calls.
 ; This allows to have a better control on what the allocation will do.