-
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
[CINN][Add Backend Pass Comment No.5] Add comment for ir_simplify #70453
[CINN][Add Backend Pass Comment No.5] Add comment for ir_simplify #70453
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/cinn/optim/ir_simplify.h
Outdated
* 2. Type mismatch: | ||
* Input IR: | ||
* Cast<float>(5) | ||
* Output IR: | ||
* Cast<float>(5) (remains unchanged) | ||
*/ |
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.
立即数会有特殊处理
paddle/cinn/optim/ir_simplify.h
Outdated
* Input IR: | ||
* for (int i = 1; i < 2; ++i) { ... } | ||
* Output IR: | ||
* ... |
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.
例子里面体现一下i的替换
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.
好的
paddle/cinn/optim/ir_simplify.h
Outdated
* Input IR: | ||
* Block { Block { ... } } | ||
* Output IR: | ||
* ... |
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.
例子1 是否应为:
1. Single statement block:
Input IR:
Block { Block { ... } }
Output IR:
Block { ... }
paddle/cinn/optim/ir_simplify.h
Outdated
* Input IR: | ||
* Block { ... } | ||
* Output IR: | ||
* ... |
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.
例子2 是否应为:
2. Nested blocks:
Input IR:
Block { Block { stmt1 }, Block { stmt2 } }
Output IR:
Block { stmt1, stmt2 }
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.
例子2 是否应为:
2. Nested blocks: Input IR: Block { Block { stmt1 }, Block { stmt2 } } Output IR: Block { stmt1, stmt2 }
是的,我改一下
PR Category
CINN
PR Types
Others
Description
为 ir_simplify Pass 添加了注释