codegen: Keep the recorded file names in JIT debug info #63780
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 188 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 70%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.314
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #63780"
general
weight: 0.35
maleadt
Fixes a regression from #63645:
code_llvm/code_nativewithdebuginfo=:sourceprint only the debug info's file name, which #63645 reduced to a basename.| | 1.13 | master | this PR |
|---|---|---|---|
| Base |
@ strings/search.jl:173|@ search.jl:178|@ strings/search.jl:178|| user file |
@ /path/to/uf.jl:1|@ uf.jl:1|@ /path/to/uf.jl:1|| stdlib |
@ <build>/.../Dates/src/accessors.jl:131|@ accessors.jl:138|@ <install>/.../Dates/src/accessors.jl:138|| Compiler |
@ ../usr/share/julia/Compiler/src/typelattice.jl|@ typelattice.jl|@ Compiler/src/typelattice.jl|The
DIFilenow keeps the recorded name: a relative name keeps its part after the matched prefix, with the installedbase(orshare/julia) as directory, and an absolute name stays whole with its parent as directory. LLVM only splits a file name when the directory is empty, so the line table keeps these as they are and no printer changes are needed. Debuggers and stack traces still get the full path.It also removes the file system access from the rewrite: the first rewrite whose prefix matches applies, whether or not the resulting file exists, so the emitted debug info only depends on the recorded name and the rewrites registered by Base. The specific rewrites come before the fallback for relative names, so real source files end up in the same place as before.
#63779 and #62803 touch the same function and will need a small rebase after this.
Assisted by: Opus 5.5, Sol 6.1