-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPCC-31885 Only trace optimizations from eclcc if -ftraceOptimizations=1 #18832
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-31885 Jirabot Action Result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not clear how the current options.traceAll works with the new eclccTraceOptions. Does traceNone, traceStandard etc supersede the traceAll option?
@@ -6540,7 +6552,10 @@ IHqlExpression * CExprFolderTransformer::createTransformed(IHqlExpression * expr | |||
|
|||
#ifdef LOG_ALL_FOLDING | |||
if ((op != transformed->getOperator()) || (expr->numChildren() != transformed->numChildren())) | |||
DBGLOG("Folding %s to %s", getOpString(updated->getOperator()), getOpString(transformed->getOperator())); | |||
{ | |||
if (doTrace(traceOptimizations)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: Can doTrace wrap the if block two lines above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could, but it is inside a #ifdef that is not defined.
@@ -1946,6 +1946,8 @@ void HqlCppTranslator::cacheOptions() | |||
} | |||
} | |||
|
|||
updateTraceFlags(loadTraceFlags(wu(), eclccTraceOptions, queryTraceFlags())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a options.traceAll Debug option (line 1921 of this file). Should loadTraceFlags be making use of this options.traceAll?
Signed-off-by: Gavin Halliday <[email protected]>
Type of change:
Checklist:
Smoketest:
Testing: