diff options
| author | Chris Dewhurst <chris.dewhurst@lero.ie> | 2016-09-06 14:41:09 +0000 |
|---|---|---|
| committer | Chris Dewhurst <chris.dewhurst@lero.ie> | 2016-09-06 14:41:09 +0000 |
| commit | 92cac9322d984a678f5803303f3a39d2d339d208 (patch) | |
| tree | 1f0bbb39e9123d87aa5701dcf7a84eaf778d8a4d | |
| parent | 719f55d3790eeed2708ac4fc1bf438363caba42d (diff) | |
| download | bcm5719-llvm-92cac9322d984a678f5803303f3a39d2d339d208.tar.gz bcm5719-llvm-92cac9322d984a678f5803303f3a39d2d339d208.zip | |
[Sparc][Leon] Corrected supported atomics size for processors supporting Leon CASA instruction back to 32 bits.
This was erroneously checked-in for 64 bits while trying to find if there was a way to get 64 bit atomicity in Leon processors. There is not and this change should not have been checked-in. There is no unit test for this as the existing unit tests test for behaviour to 32 bits, which was the original intention of the code.
llvm-svn: 280710
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp index 5421aef7f57..5e0fe674707 100644 --- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp +++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp @@ -1620,7 +1620,7 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM, if (Subtarget->isV9()) setMaxAtomicSizeInBitsSupported(64); else if (Subtarget->hasLeonCasa()) - setMaxAtomicSizeInBitsSupported(64); + setMaxAtomicSizeInBitsSupported(32); else setMaxAtomicSizeInBitsSupported(0); |

