Improve code quality for loads/stores to globals
Open
Nobody has claimed this yet.
codegen-quality
llvm
- Dominant language
- Shell
- Stars
- 277
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
See examples of unnecessary `addi` in test/CodeGen/RISCV/{mem,widemem}.ll
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the generated-code examples in test/CodeGen/RISCV/mem.ll and test/CodeGen/RISCV/widemem.ll, focusing on the unnecessary addi instructions for loads and stores to globals. Run the relevant RISC-V code-generation tests and compare the output; done means those redundant instructions are no longer emitted while the tests still pass.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100