summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2012-12-11 02:31:57 +0000
committerEvan Cheng <evan.cheng@apple.com>2012-12-11 02:31:57 +0000
commitc2bd620face8da92982d4ae1a96bf06732d1fb8a (patch)
tree724b667ca550226c64c3baba19ec9f8d51e78bd2 /llvm/lib/Target
parentc3faa19577355978075a2124b29e400f8ca17f12 (diff)
downloadbcm5719-llvm-c2bd620face8da92982d4ae1a96bf06732d1fb8a.tar.gz
bcm5719-llvm-c2bd620face8da92982d4ae1a96bf06732d1fb8a.zip
Stylistic tweak.
llvm-svn: 169811
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index a0fe215e941..474eb32d39a 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -9460,23 +9460,22 @@ EVT ARMTargetLowering::getOptimalMemOpType(uint64_t Size,
Subtarget->hasNEON() &&
!F->getFnAttributes().hasAttribute(Attributes::NoImplicitFloat)) {
bool Fast;
- if (Size >= 16 && (memOpAlign(SrcAlign, DstAlign, 16) ||
- (allowsUnalignedMemoryAccesses(MVT::v2f64, &Fast) &&
- Fast))) {
+ if (Size >= 16 &&
+ (memOpAlign(SrcAlign, DstAlign, 16) ||
+ (allowsUnalignedMemoryAccesses(MVT::v2f64, &Fast) && Fast))) {
return MVT::v2f64;
- } else if (Size >= 8 && (memOpAlign(SrcAlign, DstAlign, 8) ||
- (allowsUnalignedMemoryAccesses(MVT::f64, &Fast) &&
- Fast))) {
+ } else if (Size >= 8 &&
+ (memOpAlign(SrcAlign, DstAlign, 8) ||
+ (allowsUnalignedMemoryAccesses(MVT::f64, &Fast) && Fast))) {
return MVT::f64;
}
}
// Lowering to i32/i16 if the size permits.
- if (Size >= 4) {
+ if (Size >= 4)
return MVT::i32;
- } else if (Size >= 2) {
+ else if (Size >= 2)
return MVT::i16;
- }
// Let the target-independent logic figure it out.
return MVT::Other;
OpenPOWER on IntegriCloud