From 1887c1c2f99903d13406e723f2dcbab4511e3f49 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 21 Aug 2008 21:00:15 +0000 Subject: Fix a number of byval / memcpy / memset related codegen issues. 1. x86-64 byval alignment should be max of 8 and alignment of type. Previously the code was not doing what the commit message was saying. 2. Do not use byte repeat move and store operations. These are slow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55139 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2004-02-12-Memcpy.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/CodeGen/X86/2004-02-12-Memcpy.ll') diff --git a/test/CodeGen/X86/2004-02-12-Memcpy.ll b/test/CodeGen/X86/2004-02-12-Memcpy.ll index 59364c1..56bb21c 100644 --- a/test/CodeGen/X86/2004-02-12-Memcpy.ll +++ b/test/CodeGen/X86/2004-02-12-Memcpy.ll @@ -1,11 +1,11 @@ -; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-pc-linux-gnu | grep movs | count 3 +; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-pc-linux-gnu | grep movs | count 1 @A = global [32 x i32] zeroinitializer @B = global [32 x i32] zeroinitializer declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) -define void @main() { +define void @main() nounwind { ; dword copy call void @llvm.memcpy.i32(i8* bitcast ([32 x i32]* @A to i8*), i8* bitcast ([32 x i32]* @B to i8*), -- cgit v1.1