Skip to content

Switch to CompilerCaching.jl. - #3185

Merged
maleadt merged 1 commit into
mainfrom
tb/compilercaching
Jul 13, 2026
Merged

maleadt merged 1 commit into
mainfrom
tb/compilercaching

Conversation

@maleadt

@maleadt maleadt commented Jul 3, 2026

Copy link
Copy Markdown
Member

No description provided.

maleadt added a commit to maleadt/CompilerCaching.jl that referenced this pull request Jul 3, 2026
The callee walk in `typeinf!` re-infers callees via `typeinf_code` on the
same interpreter that ran the root inference cascade. The interpreter-local
cache can still hold tombstoned (LimitedAccuracy) const-prop results from
that deeper context, suppressing const-prop that would succeed in the
standalone entry and storing under-optimized source (e.g. unfolded Symbol
dispatch, failing GPU IR validation; JuliaGPU/CUDA.jl#3185). Clear the cache
before each re-inference, matching the runtime's fresh-interpreter-per-entry
behavior.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@maleadt
maleadt force-pushed the tb/compilercaching branch 2 times, most recently from f5233f7 to c108625 Compare July 10, 2026 14:28
maleadt added a commit to JuliaGPU/GPUCompiler.jl that referenced this pull request Jul 10, 2026
Julia object references (julia.constgv globals) are kept session-portable by
stripping their initializers after codegen, with relocate_gvs! baking in the
absolute addresses at the toplevel link step. Leaving them behind as internal
globals with a null initializer made them fair game for optimization passes
that run before relocation -- notably the GlobalOpt run in the PTX back-end's
finish_module! -- which folded loads of them to inline nulls and deleted the
globals, constant-folding e.g. device-side comparisons against Symbol literals
(JuliaGPU/CUDA.jl#3185). Demote them to external declarations instead, which
no pass can fold, and have relocate_gvs! restore initializer and linkage.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@maleadt
maleadt force-pushed the tb/compilercaching branch from c108625 to 94ab1ce Compare July 10, 2026 17:46
@maleadt
maleadt force-pushed the tb/compilercaching branch from 94ab1ce to ae839d5 Compare July 13, 2026 09:08
@maleadt
maleadt marked this pull request as ready for review July 13, 2026 10:04
@codecov

codecov Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 11.18%. Comparing base (38f2e81) to head (ae839d5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3185       +/-   ##
===========================================
- Coverage   92.36%   11.18%   -81.18%     
===========================================
  Files         167      123       -44     
  Lines       13892     9503     -4389     
===========================================
- Hits        12831     1063    -11768     
- Misses       1061     8440     +7379     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maleadt
maleadt merged commit 033a646 into main Jul 13, 2026
2 checks passed
@maleadt
maleadt deleted the tb/compilercaching branch July 13, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant