Skip to content
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

plan, expression: move constant fold to NewFunction #3868

Merged
merged 2 commits into from
Jul 24, 2017
Merged

Conversation

hanfei1991
Copy link
Member

This is the preparation of #3780
@winkyao

FuncName: model.NewCIStr(funcName),
RetType: retType,
Function: f,
}, nil
}
return FoldConstant(sf), nil
Copy link
Contributor

@winkyao winkyao Jul 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we fold Constant in here, so maybe no needs to use the recursive function FoldConstant, because the scalarFunction will have only one level here, use PlainFoldConstant is better? @hanfei1991

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can change it step by step :)

Copy link
Contributor

@winkyao winkyao Jul 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay...LGTM

@shenli
Copy link
Member

shenli commented Jul 24, 2017

What's the benefit?

@hanfei1991 hanfei1991 added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 24, 2017
@hanfei1991
Copy link
Member Author

@shenli To Fix #3780

@winkyao
Copy link
Contributor

winkyao commented Jul 24, 2017

@shenli I need to continue #3780 work base on this pr..

@shenli
Copy link
Member

shenli commented Jul 24, 2017

LGTM

@shenli shenli merged commit 6b94f44 into master Jul 24, 2017
@shenli shenli deleted the hanfei/fold branch July 24, 2017 17:22
winkyao added a commit that referenced this pull request Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants