Add braces around something that throws me for a loop.

llvm-svn: 141173
This commit is contained in:
Cameron Zwarich 2011-10-05 08:59:10 +00:00
parent 6a7aa237cc
commit 2226b4be09
1 changed files with 2 additions and 1 deletions

View File

@ -519,9 +519,10 @@ bool ARMDAGToDAGISel::SelectLdStSOReg(SDValue N, SDValue &Base, SDValue &Offset,
return false; return false;
} }
if (Subtarget->isCortexA9() && !N.hasOneUse()) if (Subtarget->isCortexA9() && !N.hasOneUse()) {
// Compute R +/- (R << N) and reuse it. // Compute R +/- (R << N) and reuse it.
return false; return false;
}
// Otherwise this is R +/- [possibly shifted] R. // Otherwise this is R +/- [possibly shifted] R.
ARM_AM::AddrOpc AddSub = N.getOpcode() == ISD::SUB ? ARM_AM::sub:ARM_AM::add; ARM_AM::AddrOpc AddSub = N.getOpcode() == ISD::SUB ? ARM_AM::sub:ARM_AM::add;