From 6c94b99c6285f6f7156edd20fabf4c0918013600 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 4 Sep 2008 22:59:58 +0000 Subject: For whatever the reason, x86 CallingConv::Fast (i.e. fastcc) was not passing scalar arguments in registers. This patch defines a new fastcc CC which is slightly different from the FastCall CC. In addition to passing integer arguments in ECX and EDX, it also specify doubles are passed in 8-byte slots which are 8-byte aligned (instead of 4-byte aligned). This avoids a potential performance hazard where doubles span cacheline boundaries. llvm-svn: 55807 --- llvm/test/CodeGen/X86/coalescer-commute3.ll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/test/CodeGen/X86/coalescer-commute3.ll') diff --git a/llvm/test/CodeGen/X86/coalescer-commute3.ll b/llvm/test/CodeGen/X86/coalescer-commute3.ll index ea756372253..7d4a80ab70f 100644 --- a/llvm/test/CodeGen/X86/coalescer-commute3.ll +++ b/llvm/test/CodeGen/X86/coalescer-commute3.ll @@ -2,7 +2,7 @@ %struct.quad_struct = type { i32, i32, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct* } -define fastcc i32 @perimeter(%struct.quad_struct* %tree, i32 %size) nounwind { +define i32 @perimeter(%struct.quad_struct* %tree, i32 %size) nounwind { entry: switch i32 %size, label %UnifiedReturnBlock [ i32 2, label %bb @@ -10,8 +10,8 @@ entry: ] bb: ; preds = %entry - %tmp31 = tail call fastcc i32 @perimeter( %struct.quad_struct* null, i32 0 ) nounwind ; [#uses=1] - %tmp40 = tail call fastcc i32 @perimeter( %struct.quad_struct* null, i32 0 ) nounwind ; [#uses=1] + %tmp31 = tail call i32 @perimeter( %struct.quad_struct* null, i32 0 ) nounwind ; [#uses=1] + %tmp40 = tail call i32 @perimeter( %struct.quad_struct* null, i32 0 ) nounwind ; [#uses=1] %tmp33 = add i32 0, %tmp31 ; [#uses=1] %tmp42 = add i32 %tmp33, %tmp40 ; [#uses=1] ret i32 %tmp42 -- cgit v1.2.3