-
Notifications
You must be signed in to change notification settings - Fork 5
Introduce dedicated LeftDiv/RightDiv instructions and matrix-division handling #218
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,8 @@ pub enum Instr { | |
| Add, | ||
| Sub, | ||
| Mul, | ||
| Div, | ||
| RightDiv, | ||
| LeftDiv, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| Pow, | ||
| Neg, | ||
| UPlus, | ||
|
|
@@ -217,7 +218,8 @@ impl Instr { | |
| Instr::Add | ||
| | Instr::Sub | ||
| | Instr::Mul | ||
| | Instr::Div | ||
| | Instr::RightDiv | ||
| | Instr::LeftDiv | ||
| | Instr::Pow | ||
| | Instr::ElemMul | ||
| | Instr::ElemDiv | ||
|
|
||


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.
RightDivunreachable in elementwise fusion allowed listLow Severity
PrimitiveOp::RightDivis listed in theallowedelementwise ops for fusion chain folding, but it can never be reached. Theis_elementwise()check on line 221 returnsfalseforRightDivnodes (sinceprimitive_categorymaps it toAccelOpCategory::Other), so the loop always breaks before evaluating theallowedmatch. This dead entry was introduced by renamingDiv→RightDivwhile also changing its category fromElementwisetoOther, without removing it from the allowed list.