Remove cycles from IR by migrating the type inference pass to use the StaticModuleScope
metadata instead of BindingsMap
#11509
Labels
StaticModuleScope
metadata instead of BindingsMap
#11509
In #11399 I'm introducing
StaticModuleScope
needed to be able to resolve method calls on atoms. It has some resemblance toBindingsMap
but it is a bit 'higher-level' - instead of holding raw IR expressions, it contains type representations that are not part of raw IR. It was needed to reflect the runtimeModuleScope
.Since it's available, the resolution of atom constructors in type propagation could also rely on
StaticModuleScope
instead ofBindingsMap
. This will allow us to remove the addedtypReference
expression fromArgument
type which will get rid of a problematic cycle in the IR. This should then fix an issue withduplicate
that does not like cycles in the IR.The text was updated successfully, but these errors were encountered: