Changeset: 28ae307f196c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=28ae307f196c
Modified Files:
        monetdb5/optimizer/opt_deadcode.c
Branch: Jul2017
Log Message:

Remove unused temporary BATs as well.


diffs (14 lines):

diff --git a/monetdb5/optimizer/opt_deadcode.c 
b/monetdb5/optimizer/opt_deadcode.c
--- a/monetdb5/optimizer/opt_deadcode.c
+++ b/monetdb5/optimizer/opt_deadcode.c
@@ -58,6 +58,10 @@ OPTdeadcodeImplementation(Client cntxt, 
                        varused[getArg(p,0)]++; // force keeping 
                        continue;
                }
+               if ( getModuleId(p) == batRef && isUpdateInstruction(p)){
+                       /* bat.append and friends are intermediates that need 
not be retained 
+                        * unless they are used */
+               } else
                if (hasSideEffects(mb, p, FALSE) || !isLinearFlow(p) || 
                                (p->retc == 1 && mb->unsafeProp) || p->barrier 
/* ==side-effect */){
                        varused[getArg(p,0)]++; // force keeping it
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to