lowRISC / lowRISC/riscv-llvm

Debug info is wrong when rustc expects a function to be inlined but llvm doesn't inline it

Open
#58 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
277
Forks
55
PR merge metrics
No merged PRs in 30d

Description

| opt-level | inline-threshold | number of errors |
|--------------|-----------------------|--------------------------|
| 0 | 2000 | 5243 |
| 0 | 255 | 3967 |
| 0 | 0 | 3012 |
| 3 | 0 | 309 |
| 3 | default | 346 |
| 3 | 2000 | 255 |

Errors where measured with:
`llvm-dwarfdump -verify | grep error | wc -l`

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported debug-info problem using the opt-level and inline-threshold combinations in the table, then run llvm-dwarfdump -verify | grep error | wc -l to measure it. Trace how rustc and LLVM handle functions expected to be inlined, and consider the issue complete when the verifier errors and the mismatch in inline behavior are explained or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, shell
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.