From a3e524df904963428dd6107167a3ac99b731a476 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 22 Jul 2023 20:01:27 -0400 Subject: [PATCH] [PowerPC] Reorder setMaxAtomicSizeInBitsSupported(). NFC Reorder setMaxAtomicSizeInBitsSupported() in numerical and more logical order. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D155379 --- llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 47960df..c1380da 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -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); -- 2.7.4