Changeset: b4334b67d63b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b4334b67d63b
Modified Files:
        monetdb5/optimizer/opt_garbageCollector.c
Branch: default
Log Message:

Avoid unnecessary instructions
Variables that are never assigned should not be set to NIL
just to please the garbage collector.


diffs (13 lines):

diff --git a/monetdb5/optimizer/opt_garbageCollector.c 
b/monetdb5/optimizer/opt_garbageCollector.c
--- a/monetdb5/optimizer/opt_garbageCollector.c
+++ b/monetdb5/optimizer/opt_garbageCollector.c
@@ -80,7 +80,8 @@ OPTgarbageCollectorImplementation(Client
                        /* force garbage collection of all within upper block */
                        depth--;
                        for (k = 0; k < vlimit; k++) {
-                               if (getEndLifespan(span,k) == i &&
+                               if (getBeginLifespan(span,k) > 0  &&
+                                       getEndLifespan(span,k) == i &&
                                        isaBatType(getVarType(mb,k)) &&
                                        varGetProp(mb, k, keepProp) == NULL){
                                                q= newAssignment(mb);
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to