summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-12-14 17:26:05 +0000
committerChad Rosier <mcrosier@apple.com>2011-12-14 17:26:05 +0000
commita26979be295640b271b7be752ef751094cb893e5 (patch)
tree2ea9378e6d11e15886eb06229aa17cda94cd5a04
parent16c4195548496e6ead210a2062cc40a8f848b481 (diff)
downloadbcm5719-llvm-a26979be295640b271b7be752ef751094cb893e5.tar.gz
bcm5719-llvm-a26979be295640b271b7be752ef751094cb893e5.zip
Fix 80-column violation and extraneous brackets.
llvm-svn: 146566
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 5cb24ad463c..bfeac47811e 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -178,8 +178,9 @@ class ARMFastISel : public FastISel {
bool isLoadTypeLegal(Type *Ty, MVT &VT);
bool ARMEmitCmp(const Value *Src1Value, const Value *Src2Value,
bool isZExt);
- bool ARMEmitLoad(EVT VT, unsigned &ResultReg, Address &Addr, unsigned Alignment = 0,
- bool isZExt = true, bool allocReg = true);
+ bool ARMEmitLoad(EVT VT, unsigned &ResultReg, Address &Addr,
+ unsigned Alignment = 0, bool isZExt = true,
+ bool allocReg = true);
bool ARMEmitStore(EVT VT, unsigned SrcReg, Address &Addr,
unsigned Alignment = 0);
@@ -1027,11 +1028,11 @@ bool ARMFastISel::ARMEmitLoad(EVT VT, unsigned &ResultReg, Address &Addr,
}
break;
case MVT::f64:
- if (Alignment && Alignment < 4) {
- // FIXME: Unaligned loads need special handling. Doublewords require
- // word-alignment.
+ // FIXME: Unaligned loads need special handling. Doublewords require
+ // word-alignment.
+ if (Alignment && Alignment < 4)
return false;
- }
+
Opc = ARM::VLDRD;
RC = TLI.getRegClassFor(VT);
break;
@@ -1145,9 +1146,9 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg, Address &Addr,
if (!Subtarget->hasVFP2()) return false;
// FIXME: Unaligned stores need special handling. Doublewords require
// word-alignment.
- if (Alignment && Alignment < 4) {
+ if (Alignment && Alignment < 4)
return false;
- }
+
StrOpc = ARM::VSTRD;
break;
}
OpenPOWER on IntegriCloud