Update of /cvsroot/monetdb/MonetDB5/src/optimizer
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28203/src/optimizer
Modified Files:
opt_recycler.mx
Log Message:
indent only.
Index: opt_recycler.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/optimizer/opt_recycler.mx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- opt_recycler.mx 14 Mar 2008 07:45:04 -0000 1.8
+++ opt_recycler.mx 14 Mar 2008 07:54:39 -0000 1.9
@@ -86,34 +86,34 @@
OPTrecycleImplementation(MalBlkPtr mb, MalStkPtr stk, InstrPtr p)
{
int i, j, cnt, actions=0;
- Lifespan span= newLifespan(mb);
+ Lifespan span = newLifespan(mb);
(void) stk;
setLifespan(mb,span);
for (i = 1; i<mb->stop; i++) {
- p= getInstrPtr(mb,i);
+ p = getInstrPtr(mb,i);
@-
Functions with side effects can not be subject to recycle actions.
@c
- if( hasSideEffects(p,TRUE) || isUnsafeFunction(p))
+ if (hasSideEffects(p,TRUE) || isUnsafeFunction(p))
continue;
- cnt= 0;
- for( j=p->retc; j<p->argc; j++)
- if( isVarRecycled(mb, getArg(p,j)) ||
- isVarConstant(mb, getArg(p,j)) )
- cnt++;
+ cnt = 0;
+ for (j=p->retc; j<p->argc; j++)
+ if (isVarRecycled(mb, getArg(p,j)) ||
+ isVarConstant(mb, getArg(p,j)))
+ cnt++;
- if( cnt == p->argc-p->retc){
+ if (cnt == p->argc-p->retc) {
actions ++;
p->recycle = 1; /* this instruction is to be monitored
*/
- for( j= 0; j < p->retc; j++)
- if( getLastUpdate(span, getArg(p,j)) == i ){
- setVarRecycled(mb, getArg(p,j));
+ for (j= 0; j < p->retc; j++)
+ if(getLastUpdate(span, getArg(p,j)) == i ){
+ setVarRecycled(mb, getArg(p,j));
#ifdef DEBUG_OPT_RECYCLER
- stream_printf(GDKout,"recyle %d\n",getArg(p,j));
- printInstruction(GDKout,mb,p,LIST_MAL_ALL);
+ stream_printf(GDKout,"recyle %d\n",getArg(p,j));
+ printInstruction(GDKout,mb,p,LIST_MAL_ALL);
#endif
- }
+ }
}
@-
The expected gain is largest if we can re-use selections
@@ -133,8 +133,8 @@
clrAllTypes(mb);
}
}
- if( actions)
- mb->version= -1; /* will trigger the recycler runtime
support */
+ if (actions)
+ mb->version = -1; /* will trigger the recycler runtime
support */
GDKfree(span);
return actions;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins