This patch extends the current pass by handling Mul instructions as well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LG in general. Some code can be made clearer with refactoring. Thanks for working on this! It has been on my TODO list for quite a long time :)
| lib/Transforms/Scalar/NaryReassociate.cpp | ||
|---|---|---|
| 473–476 | Extract these lines to a helper function, e.g., matchTernaryOp that returns the opcode and outputs A and B as parameters. | |
| 485–487 | Extract these lines to a helper function, e.g., getBinarySCEV. | |
Extract these lines to a helper function, e.g., matchTernaryOp that returns the opcode and outputs A and B as parameters.