Skip to content
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

codegen: fix compute_va_type issue with Type #46953

Merged
merged 1 commit into from
Sep 29, 2022
Merged

codegen: fix compute_va_type issue with Type #46953

merged 1 commit into from
Sep 29, 2022

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Sep 28, 2022

Issue noted in #42498. This should be the same as
Core.Compiler.tuple_tfunc. Otherwise we might accidentally constant-fold something like:

 code_llvm((x...) -> x isa Tuple{Type{Tuple{Any}},Int}, (Type{Tuple{Any}}, Int))

to return true. This is rarely a compile-sig in practice, so it does not usually affect code, but is observable there in the IR.

Issue noted in #42498. This should be the same as
Core.Compiler.tuple_tfunc. Otherwise we might accidentally constant-fold
something like:

     code_llvm((x...) -> x isa Tuple{Type{Tuple{Any}},Int}, (Type{Tuple{Any}}, Int))

to return true. This is rarely a compile-sig in practice, so it does not
usually affect code, but is observable there in the IR.
@vtjnash vtjnash merged commit 170d643 into master Sep 29, 2022
@vtjnash vtjnash deleted the jn/42498 branch September 29, 2022 06:51
maleadt added a commit that referenced this pull request Jan 25, 2023
maleadt added a commit that referenced this pull request Jan 25, 2023
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