-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[PIR] Add delete assert op pass and use it before apply cinn pass #70115
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] Add delete assert op pass and use it before apply cinn pass #70115
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
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.
Copilot reviewed 1 out of 5 changed files in this pull request and generated no suggestions.
Files not reviewed (4)
- paddle/cinn/hlir/dialect/operator/transforms/add_cinn_pass.cc: Language not supported
- paddle/fluid/inference/api/analysis_predictor.cc: Language not supported
- paddle/fluid/pir/transforms/general/delete_assert_op_pass.cc: Language not supported
- paddle/fluid/pir/transforms/general/delete_assert_op_pass.h: Language not supported
| ::pir::PassManager delete_assert_op_pm(::pir::IrContext::Instance(), | ||
| config_.pm_opt_level_); | ||
| delete_assert_op_pm.AddPass( | ||
| pir::PassRegistry::Instance().Get("delete_assert_op_pass")); |
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.
C++层pass调用可以直接include对应pass头文件调用CreateDeleteAssertOpPass
|
|
||
| #include "paddle/fluid/pir/transforms/general/delete_assert_op_pass.h" | ||
|
|
||
| #include "paddle/fluid/pir/dialect/operator/ir/control_flow_op.h" |
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.
control_flow_op.h 有使用到吗
PR Category
Execute Infrastructure
PR Types
Improvements
Description
添加 pass 用于删除
AssertOp,目前会在 CINN 场景使用,在apply_cinn_pass前调用TODOs
PCard-66972