[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 4fbd5b1..9e355fb 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 5654657..5bc4d71 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.