Changeset: 3c2245c308f8 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3c2245c308f8 Modified Files: sql/backends/monet5/datacell/opt_datacell.mx Branch: default Log Message:
Move window/beat before transaction start. diffs (21 lines): diff --git a/sql/backends/monet5/datacell/opt_datacell.mx b/sql/backends/monet5/datacell/opt_datacell.mx --- a/sql/backends/monet5/datacell/opt_datacell.mx +++ b/sql/backends/monet5/datacell/opt_datacell.mx @@ -100,7 +100,7 @@ isVarConstant(mb, getArg(p,1)) && isVarConstant(mb, getArg(p,2)) && isVarConstant(mb,getArg(p,3)) ){ /* let's move the window to the start of the block when it consists of constants*/ pushInstruction(mb,p); - for ( j = mb->stop-1; j >2; j--) + for ( j = mb->stop-1; j > 1; j--) mb->stmt[j]= mb->stmt[j-1]; mb->stmt[j] = p; continue; @@ -109,7 +109,7 @@ isVarConstant(mb, getArg(p,1)) && isVarConstant(mb, getArg(p,2)) ){ /* let's move the threshold/beat to the start of the block when it consists of constants*/ pushInstruction(mb,p); - for ( j = mb->stop-1; j >2; j--) + for ( j = mb->stop-1; j > 1; j--) mb->stmt[j]= mb->stmt[j-1]; mb->stmt[j] = p; continue; _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list