[llvm] r280710 - [Sparc][Leon] Corrected supported atomics size for processors supporting Leon CASA instruction back to 32 bits.

Chris Dewhurst via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 6 07:41:09 PDT 2016


Author: lerochris
Date: Tue Sep  6 09:41:09 2016
New Revision: 280710

URL: http://llvm.org/viewvc/llvm-project?rev=280710&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp

Modified: llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp?rev=280710&r1=280709&r2=280710&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp Tue Sep  6 09:41:09 2016
@@ -1620,7 +1620,7 @@ SparcTargetLowering::SparcTargetLowering
   if (Subtarget->isV9())
     setMaxAtomicSizeInBitsSupported(64);
   else if (Subtarget->hasLeonCasa())
-    setMaxAtomicSizeInBitsSupported(64);
+    setMaxAtomicSizeInBitsSupported(32);
   else
     setMaxAtomicSizeInBitsSupported(0);
 




More information about the llvm-commits mailing list