Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/RISCV/RISCVInstrInfo.td | ||
---|---|---|
281 ↗ | (On Diff #119600) | You should add the LUI pattern for materializing constants where the lower 12 bits are all zeros, |
lib/Target/RISCV/RISCVInstrInfo.td | ||
---|---|---|
281 ↗ | (On Diff #119600) | Agreed, thanks for the comment. I had someone who has been playing with this patchset do this and send me a patch + tests via email. In order to track code ownership properly (and get them introduced to the LLVM code review process), they will submit to phabricator. It would probably make sense to commit this patch with a // TODO: add pattern for immediate with lower 12 bits all zeros. |
lib/Target/RISCV/RISCVInstrInfo.td | ||
---|---|---|
281 ↗ | (On Diff #119600) |
Sounds reasonable. |
Split out the immediate materialisation tests to a separate file and add a TODO for immediates with lo12=0.