summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/coalescer-commute3.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-04 22:59:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-04 22:59:58 +0000
commit6c94b99c6285f6f7156edd20fabf4c0918013600 (patch)
tree39d7f0698872c9b85272bc3a19652b3bd64d2b2c /llvm/test/CodeGen/X86/coalescer-commute3.ll
parent40519f03703d2ee412b5f930f3d2edf79fe260c9 (diff)
downloadbcm5719-llvm-6c94b99c6285f6f7156edd20fabf4c0918013600.tar.gz
bcm5719-llvm-6c94b99c6285f6f7156edd20fabf4c0918013600.zip
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
Diffstat (limited to 'llvm/test/CodeGen/X86/coalescer-commute3.ll')
-rw-r--r--llvm/test/CodeGen/X86/coalescer-commute3.ll6
1 files changed, 3 insertions, 3 deletions
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 ; <i32> [#uses=1]
- %tmp40 = tail call fastcc i32 @perimeter( %struct.quad_struct* null, i32 0 ) nounwind ; <i32> [#uses=1]
+ %tmp31 = tail call i32 @perimeter( %struct.quad_struct* null, i32 0 ) nounwind ; <i32> [#uses=1]
+ %tmp40 = tail call i32 @perimeter( %struct.quad_struct* null, i32 0 ) nounwind ; <i32> [#uses=1]
%tmp33 = add i32 0, %tmp31 ; <i32> [#uses=1]
%tmp42 = add i32 %tmp33, %tmp40 ; <i32> [#uses=1]
ret i32 %tmp42
OpenPOWER on IntegriCloud