OSDN Git Service

[Sparc] Atomics pass changes to make work with SparcV8 back-ends.
authorChris Dewhurst <chris.dewhurst@lero.ie>
Mon, 27 Jun 2016 22:11:09 +0000 (22:11 +0000)
committerChris Dewhurst <chris.dewhurst@lero.ie>
Mon, 27 Jun 2016 22:11:09 +0000 (22:11 +0000)
This change reverts a "false" test that was placed to avoid regressions while the atomics pass was completed for the Sparc back-ends.

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

lib/Target/Sparc/SparcISelLowering.cpp

index 14c20a4..3623053 100644 (file)
@@ -1638,10 +1638,8 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM,
   // are unsupported.
   if (Subtarget->isV9())
     setMaxAtomicSizeInBitsSupported(64);
-  else if (false && Subtarget->hasLeonCasa())
-    // Test made to fail pending completion of AtomicExpandPass,
-    // as this will cause a regression until that work is completed.
-    setMaxAtomicSizeInBitsSupported(32);
+  else if (Subtarget->hasLeonCasa())
+    setMaxAtomicSizeInBitsSupported(64);
   else
     setMaxAtomicSizeInBitsSupported(0);