[PowerPC] Reorder setMaxAtomicSizeInBitsSupported(). NFC
authorBrad Smith <brad@comstyle.com>
Sun, 23 Jul 2023 00:01:27 +0000 (20:01 -0400)
committerBrad Smith <brad@comstyle.com>
Sun, 23 Jul 2023 00:01:27 +0000 (20:01 -0400)
Reorder setMaxAtomicSizeInBitsSupported() in numerical and more logical order.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D155379

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

index 47960df..c1380da 100644 (file)
@@ -1371,12 +1371,12 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
     setLibcallName(RTLIB::MULO_I64, nullptr);
   }
 
-  if (!isPPC64)
-    setMaxAtomicSizeInBitsSupported(32);
-  else if (shouldInlineQuadwordAtomics())
+  if (shouldInlineQuadwordAtomics())
     setMaxAtomicSizeInBitsSupported(128);
-  else
+  else if (isPPC64)
     setMaxAtomicSizeInBitsSupported(64);
+  else
+    setMaxAtomicSizeInBitsSupported(32);
 
   setStackPointerRegisterToSaveRestore(isPPC64 ? PPC::X1 : PPC::R1);