-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[PIR] Rewrite dead_code_elimination_pass, delete reorder_block_ops_pass and fix constant_folding_pass #58732
Conversation
3291ca7
to
bef7950
Compare
bef7950
to
5a43560
Compare
void Run(pir::Operation* op) override { | ||
pir::GreedyRewriteConfig cfg; | ||
cfg.use_top_down_traversal = true; | ||
cfg.max_iterations = 10; |
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.
Why this magic number?
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 controls the number of iterations and patterns during full graph matching.
…ss and fix constant_folding_pass (PaddlePaddle#58732) * fix dead_code_elimination_pass and delete reorder_block_ops_pass * update * update * update * update * update
…ss and fix constant_folding_pass (PaddlePaddle#58732) * fix dead_code_elimination_pass and delete reorder_block_ops_pass * update * update * update * update * update
你的PR提交成功,感谢你对开源项目的贡献! |
…ss and fix constant_folding_pass (PaddlePaddle#58732) * fix dead_code_elimination_pass and delete reorder_block_ops_pass * update * update * update * update * update
…ss and fix constant_folding_pass (PaddlePaddle#58732) * fix dead_code_elimination_pass and delete reorder_block_ops_pass * update * update * update * update * update
PR types
Others
PR changes
Others
Description
Others
Pcard-71500