[AArch64] Remove redundant -march option. Also fix a think-o from r234462.
authorLang Hames <lhames@gmail.com>
Thu, 9 Apr 2015 05:34:57 +0000 (05:34 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 9 Apr 2015 05:34:57 +0000 (05:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234467 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/arm64-misaligned-memcpy-inline.ll

index 4fbd5b1ee596a82704213508b642bcc65e7123b1..9e355fbe666c7b66d6efa278163130cb98fe0799 100644 (file)
@@ -6672,7 +6672,7 @@ EVT AArch64TargetLowering::getOptimalMemOpType(uint64_t Size, unsigned DstAlign,
   if (Size >= 4 &&
       (memOpAlign(SrcAlign, DstAlign, 4) ||
        (allowsMisalignedMemoryAccesses(MVT::i32, 0, 1, &Fast) && Fast)))
-    return MVT::i64;
+    return MVT::i32;
 
   return MVT::Other;
 }
index 5654657c7073879b6a3e8ecb6f486f5147685e9a..5bc4d71501ba4b14f519765447333e49826e8e41 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -march=arm64 -mtriple=arm64-apple-ios -aarch64-strict-align < %s | FileCheck %s
+; RUN: llc -mtriple=arm64-apple-ios -aarch64-strict-align < %s | FileCheck %s
 
 ; Small (16-bytes here) unaligned memcpys should stay memcpy calls if
 ; strict-alignment is turned on.