Changeset: 2d46052edd03 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2d46052edd03
Modified Files:
monetdb5/optimizer/opt_commonTerms.mx
Branch: default
Log Message:
Minor speed improvement
diffs (21 lines):
diff --git a/monetdb5/optimizer/opt_commonTerms.mx
b/monetdb5/optimizer/opt_commonTerms.mx
--- a/monetdb5/optimizer/opt_commonTerms.mx
+++ b/monetdb5/optimizer/opt_commonTerms.mx
@@ -193,7 +193,7 @@
if ( (q=getInstrPtr(mb,j))->fcn == p->fcn &&
!isUnsafeFunction(q)){
#ifdef DEBUG_OPT_COMMONTERMS_MORE
mnstr_printf(cntxt->fdout,"#CANDIDATE %d, %d %d %d
lookback %d ", i, j,
- hasSameSignature(mb, p, q),
+ hasSameSignature(mb, p, q, p->retc),
hasSameArguments(mb, p, q), last);
printInstruction(cntxt->fdout, mb, 0, q,
LIST_MAL_ALL);
mnstr_printf(cntxt->fdout," :%d %d %d=%d %d %d
%d %d %d\n",
@@ -211,7 +211,7 @@
be assigned their value before instruction p.
@c
if ( hasSameArguments(mb, p, q) &&
- hasSameSignature(mb, p, q) &&
+ hasSameSignature(mb, p, q, p->retc) &&
!hasCommonResults(p, q) &&
isLinearFlow(q)
) {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list