[Sparc] Atomics pass changes to make work with SparcV8 back-ends.

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
This commit is contained in:
Chris Dewhurst 2016-06-27 22:11:09 +00:00
parent e4c2111aa4
commit 95c869b234

View 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);