Changeset: 362e51f80833 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/362e51f80833
Modified Files:
        sql/server/rel_optimize_others.c
Branch: nestedtypes
Log Message:

fix dce optimizer


diffs (16 lines):

diff --git a/sql/server/rel_optimize_others.c b/sql/server/rel_optimize_others.c
--- a/sql/server/rel_optimize_others.c
+++ b/sql/server/rel_optimize_others.c
@@ -269,8 +269,10 @@ exps_mark_all_used(list *exps, int nid, 
 
                        if (e->alias.label == nid) {
                                if (local_proj <= -1 || i < local_proj) {
-                                       e->used = 1;
-                                       return 1;
+                                       if (e->nid != e->alias.label) {
+                                               e->used = 1;
+                                               return 1;
+                                       }
                                }
                        }
                        if (e->f && e->type == e_column && (local_proj <= -1 || 
i < local_proj)) {
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to