This case will show whether (mul (add x, c1), c2) can be transformed
to (add (mul x, c2), c1*c2) according to different c1/c2 pairs.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This patch will show the optimization by my previous patch https://reviews.llvm.org/D83153
Comment Actions
LGTM!
Please ask for commit access and land this yourself. There's more about this, and what that entails, in this document: https://llvm.org/docs/DeveloperPolicy.html
Comment Actions
Optional: you can add [test] to the subject, i.e. [RISCV][test] to make it clear this patch is completely about tests. This is even stronger than NFC (non-functional change).
llvm/test/CodeGen/RISCV/addimm-mulimm.ll | ||
---|---|---|
2 | It'd be better adding a file-level comment. |
llvm/test/CodeGen/RISCV/addimm-mulimm.ll | ||
---|---|---|
2 | +1 on adding a comment to this file explaining what it's aiming to demonstrate |
It'd be better adding a file-level comment.