Update of /cvsroot/monetdb/MonetDB5/src/optimizer
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14818

Modified Files:
        opt_remap.mx 
Log Message:
The first series of multiplexing inline MAL blocks.
The optimizers are limited towards side-effect free mal blocks.


Index: opt_remap.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/optimizer/opt_remap.mx,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- opt_remap.mx        26 Dec 2007 14:31:12 -0000      1.16
+++ opt_remap.mx        26 Dec 2007 17:24:19 -0000      1.17
@@ -150,7 +150,6 @@
 find an instruction that does not have a multiplex
 counterpart.
 @c
-#define DEBUG_OPT_REMAP
 static int OPTmultiplexInline( MalBlkPtr mb, InstrPtr p, int pc ){
        MalBlkPtr mq;
        InstrPtr q,sig;
@@ -254,7 +253,7 @@
        printFunction(GDKout,mb,LIST_MAL_ALL);
 #endif
        GDKfree(upgrade);
-       return 0;
+       return 1;
 }
 @-
 The comparison multiplex operations with a constant head may be supported
@@ -339,6 +338,9 @@
                                pushInstruction(mb, p);
                                if( OPTmultiplexInline(mb,p,mb->stop-1) )
                                        doit++;
+#ifdef DEBUG_OPT_REMAP
+                               stream_printf(GDKout,"doit %d\n",doit);
+#endif
                        } else 
                        if(     OPTremapDirect(mb, stk, p, scope) ||
                                OPTremapSwitched(mb, stk, p, scope)){


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to