Skip to content

Refactor the meaning of NewSSAValue in IncrementalCompact #45610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2022
Merged

Conversation

Keno
Copy link
Member

@Keno Keno commented Jun 7, 2022

Curently, uncompacted nodes in IncrementalCompact can refer
to old SSAValues (as regular SSAValues) and new-new SSAValues
(as NewSSAValues), but not post-compaction SSA values. This
is a bit of an odd missing middle and is useful when re-ordering
instructions from beyond the current insertion point. This PR
updates the definition of NewSSAValue to be able to refer
to both post-compaction SSAValues (using positive id values)
and new-new SSAValues (using negative id values), which also
makes their meaning independent of context (like OldSSAValue).

While we're at it, also clean up the getindex methods for
IncrementalCompact to return Instruction (as we did for IRCode).

Curently, uncompacted nodes in IncrementalCompact can refer
to old SSAValues (as regular SSAValues) and new-new SSAValues
(as NewSSAValues), but not post-compaction SSA values. This
is a bit of an odd missing middle and is useful when re-ordering
instructions from beyond the current insertion point. This PR
updates the definition of NewSSAValue to be able to refer
to both post-compaction SSAValues (using positive `id` values)
and new-new SSAValues (using negative `id` values), which also
makes their meaning independent of context (like OldSSAValue).

While we're at it, also clean up the `getindex` methods for
IncrementalCompact to return `Instruction` (as we did for IRCode).
@vtjnash
Copy link
Member

vtjnash commented Jun 10, 2022

seems like an odd flake?

compiler/codegen                          (8) |         failed at 2022-06-07T20:03:11.299
Test Failed at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-6.0/build/default-macmini-x64-6-0/julialang/julia-master/julia-43992495f9/share/julia/test/compiler/codegen.jl:272
  Expression: was_gced

@vtjnash
Copy link
Member

vtjnash commented Jun 10, 2022

Seems probably not new #45195 (comment)

@vtjnash vtjnash merged commit 3d2c9b7 into master Jun 10, 2022
@vtjnash vtjnash deleted the kf/newssa branch June 10, 2022 21:14
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.

2 participants