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

【CINN】refactor ir_visitor #55171

Merged
merged 7 commits into from
Jul 7, 2023

Conversation

Courtesy-Xs
Copy link
Contributor

PR types

Performance optimization

PR changes

Others

Description

This PR delete middle ir_visitor class and thus we can avoid middle virtual function call and codes look more clean
pcard-72718

@paddle-bot
Copy link

paddle-bot bot commented Jul 5, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@Courtesy-Xs Courtesy-Xs changed the title refactor ir_visitor 【CINN】refactor ir_visitor Jul 6, 2023
@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Jul 6, 2023
@PaddlePaddle PaddlePaddle unlocked this conversation Jul 6, 2023
return op__::Make(v); \
#define OP_UNARY_HANDLE(op__) \
Expr Visit(const op__* op) override { \
auto v = IRVisitorRequireReImplVisitor::Visit(&op->v()); \
Copy link
Member

Choose a reason for hiding this comment

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

Why are 2 Visitors in name?

Using IrVisitorRequireReImplor IrRequireReImplVisitor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Member

Choose a reason for hiding this comment

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

Why is there an empty file? Should we delete it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Member

@zhhsplendid zhhsplendid left a comment

Choose a reason for hiding this comment

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

LGTM

@zhhsplendid zhhsplendid merged commit ed6b956 into PaddlePaddle:develop Jul 7, 2023
cqulilujia pushed a commit to cqulilujia/Paddle that referenced this pull request Jul 24, 2023
This PR delete middle ir_visitor class and thus we can avoid middle virtual function call and codes look more clean
pcard-72718
@Courtesy-Xs Courtesy-Xs deleted the cinn_visitor_refactor branch July 27, 2023 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants