Silence a GCC warning about && and || without explicit parentheses. This
authorChandler Carruth <chandlerc@gmail.com>
Thu, 5 Aug 2010 03:04:21 +0000 (03:04 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 5 Aug 2010 03:04:21 +0000 (03:04 +0000)
preserves the existing behavior, as it seems a concious choice to allow RS to
be null and BigStack marked true.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110307 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMBaseRegisterInfo.cpp

index 855e07232d3d62ce99abc82a1280768cde7116df..d3251dc76f841ad934d2d615b581319f9e1f66a8 100644 (file)
@@ -860,9 +860,9 @@ ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
   //        worth the effort and added fragility?
   bool BigStack =
     (RS && (estimateStackSize(MF) + (hasFP(MF) ? 4:0) >=
-            estimateRSStackSizeLimit(MF))
-     || MFI->hasVarSizedObjects()
-     || (MFI->adjustsStack() && !canSimplifyCallFramePseudos(MF)));
+            estimateRSStackSizeLimit(MF)))
+    || MFI->hasVarSizedObjects()
+    || (MFI->adjustsStack() && !canSimplifyCallFramePseudos(MF));
 
   bool ExtraCSSpill = false;
   if (BigStack || !CanEliminateFrame || cannotEliminateFrame(MF)) {