Update of /cvsroot/monetdb/pathfinder/compiler/include
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10665/include

Modified Files:
      Tag: XQuery_0-18
        mil_opt.h 
Log Message:
[ 1730617 ] XQ: 32 docs

- bugfix: after the dead-code optimized conditional administration has overflown
          we must *give-up* elimination of statements, rather than just stopping
          the variable usage-tracking. 
- increase the conditional admin max-depth from 32 to 32767



Index: mil_opt.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/mil_opt.h,v
retrieving revision 1.23
retrieving revision 1.23.2.1
diff -u -d -r1.23 -r1.23.2.1
--- mil_opt.h   25 Jan 2007 23:40:17 -0000      1.23
+++ mil_opt.h   6 Jun 2007 16:18:11 -0000       1.23.2.1
@@ -41,13 +41,13 @@
  * - don't generate MIL statements with multiple (i.e. inline) assignments "x 
:= (y := 1) + 1;"
  * - for better pruning: use assignment notation for update statements "x := 
x.insert(y);"
  * ----------------------------------------------------------------------------
- */
 #define OPT_CODEMOTION 1
+ */
 
 #define OPT_STMTS 32767 /* <65535 if first-use further out than this amount of 
stamements, dead codes survises anyhow */
 #define OPT_VARS 1024 /* don't try dead code elimintation above this amount of 
live variables */
 #define OPT_REFS 63 /* keep track of usage dependencies; may omit some, which 
results in surviving dead code */
-#define OPT_CONDS 32  /* maximum if-nesting */
+#define OPT_CONDS 32767  /* maximum if-nesting */
 
 #define OPT_SEC_PROLOGUE 0
 #define OPT_SEC_QUERY 1
@@ -115,6 +115,7 @@
 
 typedef struct {
     unsigned int optimize; /* or not */
+    unsigned int delete;   /* used to bail out from further optimization after 
structures overflow */
 
     unsigned int curstmt;  /* number of detected MIL statements so far */
     unsigned int scope;    /* current scope depth */


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to