Switch to CompilerCaching.jl.#3185
Draft
maleadt wants to merge 3 commits into
Draft
Conversation
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>
f5233f7 to
c108625
Compare
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>
c108625 to
94ab1ce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.