mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Stylistic tweak.
llvm-svn: 169811
This commit is contained in:
parent
175af3914a
commit
a13f64ff50
@ -9460,23 +9460,22 @@ EVT ARMTargetLowering::getOptimalMemOpType(uint64_t Size,
|
|||||||
Subtarget->hasNEON() &&
|
Subtarget->hasNEON() &&
|
||||||
!F->getFnAttributes().hasAttribute(Attributes::NoImplicitFloat)) {
|
!F->getFnAttributes().hasAttribute(Attributes::NoImplicitFloat)) {
|
||||||
bool Fast;
|
bool Fast;
|
||||||
if (Size >= 16 && (memOpAlign(SrcAlign, DstAlign, 16) ||
|
if (Size >= 16 &&
|
||||||
(allowsUnalignedMemoryAccesses(MVT::v2f64, &Fast) &&
|
(memOpAlign(SrcAlign, DstAlign, 16) ||
|
||||||
Fast))) {
|
(allowsUnalignedMemoryAccesses(MVT::v2f64, &Fast) && Fast))) {
|
||||||
return MVT::v2f64;
|
return MVT::v2f64;
|
||||||
} else if (Size >= 8 && (memOpAlign(SrcAlign, DstAlign, 8) ||
|
} else if (Size >= 8 &&
|
||||||
(allowsUnalignedMemoryAccesses(MVT::f64, &Fast) &&
|
(memOpAlign(SrcAlign, DstAlign, 8) ||
|
||||||
Fast))) {
|
(allowsUnalignedMemoryAccesses(MVT::f64, &Fast) && Fast))) {
|
||||||
return MVT::f64;
|
return MVT::f64;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lowering to i32/i16 if the size permits.
|
// Lowering to i32/i16 if the size permits.
|
||||||
if (Size >= 4) {
|
if (Size >= 4)
|
||||||
return MVT::i32;
|
return MVT::i32;
|
||||||
} else if (Size >= 2) {
|
else if (Size >= 2)
|
||||||
return MVT::i16;
|
return MVT::i16;
|
||||||
}
|
|
||||||
|
|
||||||
// Let the target-independent logic figure it out.
|
// Let the target-independent logic figure it out.
|
||||||
return MVT::Other;
|
return MVT::Other;
|
||||||
|
Loading…
Reference in New Issue
Block a user