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

[PIR] Rewrite dead_code_elimination_pass, delete reorder_block_ops_pass and fix constant_folding_pass #58732

Merged
merged 6 commits into from
Nov 7, 2023

Conversation

yuanlehome
Copy link
Contributor

@yuanlehome yuanlehome commented Nov 6, 2023

PR types

Others

PR changes

Others

Description

  • rewrite dead_code_elimination_pass
  • delete reorder_block_ops_pass
  • fix constant_folding_pass

Others

Pcard-71500

@yuanlehome yuanlehome changed the title [PIR] fix dead_code_elimination_pass and delete reorder_block_ops_pass [PIR] Rewrite dead_code_elimination_pass and delete reorder_block_ops_pass Nov 6, 2023
@yuanlehome yuanlehome changed the title [PIR] Rewrite dead_code_elimination_pass and delete reorder_block_ops_pass [PIR] Rewrite dead_code_elimination_pass, delete reorder_block_ops_pass and fix constant_folding_pass Nov 6, 2023
@yuanlehome yuanlehome merged commit 9778987 into PaddlePaddle:develop Nov 7, 2023
void Run(pir::Operation* op) override {
pir::GreedyRewriteConfig cfg;
cfg.use_top_down_traversal = true;
cfg.max_iterations = 10;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this magic number?

Copy link
Contributor Author

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.

jiahy0825 pushed a commit to jiahy0825/Paddle that referenced this pull request Nov 7, 2023
…ss and fix constant_folding_pass (PaddlePaddle#58732)

* fix dead_code_elimination_pass and delete reorder_block_ops_pass

* update

* update

* update

* update

* update
zeroRains pushed a commit to zeroRains/Paddle that referenced this pull request Nov 8, 2023
…ss and fix constant_folding_pass (PaddlePaddle#58732)

* fix dead_code_elimination_pass and delete reorder_block_ops_pass

* update

* update

* update

* update

* update
Copy link

paddle-bot bot commented Nov 10, 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.

danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
…ss and fix constant_folding_pass (PaddlePaddle#58732)

* fix dead_code_elimination_pass and delete reorder_block_ops_pass

* update

* update

* update

* update

* update
SecretXV pushed a commit to SecretXV/Paddle that referenced this pull request Nov 28, 2023
…ss and fix constant_folding_pass (PaddlePaddle#58732)

* fix dead_code_elimination_pass and delete reorder_block_ops_pass

* update

* update

* update

* update

* update
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.

3 participants