Skip to content

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.

3 participants