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

Modified Files:
        coreopt.brg 
Log Message:
-- Made Core optimization for path steps less aggressive
   (-- too much steps got pruned).


U coreopt.brg
Index: coreopt.brg
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/core/coreopt.brg,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- coreopt.brg 20 Mar 2008 12:49:32 -0000      1.63
+++ coreopt.brg 28 Mar 2008 13:27:06 -0000      1.64
@@ -1384,9 +1384,15 @@
                 /* the kind test does not match the attribute input */
                 ((L(p)->kind == c_self ||
                   L(p)->kind == c_descendant_or_self) &&
+                 /* input is of type attribute()* */
                  PFty_subtype (TY(R(p)),
                                PFty_star (PFty_xs_anyAttribute ())) &&
-                 !PFty_subtype (TY(R(p)), PFty_star(TY(L(p)))))) {
+                 /* expected is neither type node()* */
+                 !PFty_subtype (PFty_star (PFty_xs_anyNode ()),
+                                TY(L(p))) &&
+                 /* nor type attribute()* */
+                 !PFty_subtype (TY(L(p)),
+                                PFty_star (PFty_xs_anyAttribute ())))) {
                 *p = *empty ();
                 TY(p) = PFty_empty ();
                 rewritten = true;


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to