dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/engine unroll_ptr.c,1.2,1.3


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/engine unroll_ptr.c,1.2,1.3
Date: Sat, 12 Jul 2003 06:34:59 -0400

Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv7634/engine

Modified Files:
        unroll_ptr.c 
Log Message:


Tune short branches a little for x86 to increase code density and hence
CPU caching behaviour.


Index: unroll_ptr.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/unroll_ptr.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** unroll_ptr.c        12 Jul 2003 03:52:58 -0000      1.2
--- unroll_ptr.c        12 Jul 2003 10:34:56 -0000      1.3
***************
*** 33,37 ****
--- 33,41 ----
        md_reg_is_null(unroll->out, reg);
        patch = unroll->out;
+ #ifdef CVM_X86
+       x86_branch8(unroll->out, X86_CC_NE, 0, 0);
+ #else
        md_branch_ne(unroll->out);
+ #endif
  
        /* Re-execute the current instruction in the interpreter */
***************
*** 63,67 ****
--- 67,75 ----
        md_reg_is_null(unroll->out, reg);
        patch1 = unroll->out;
+ #ifdef CVM_X86
+       x86_branch8(unroll->out, X86_CC_EQ, 0, 0);
+ #else
        md_branch_eq(unroll->out);
+ #endif
  
        /* Check the array bounds */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]