Since every functions need to be instantiated, the ctx.generic_func_scope is not necessary for determining whether it needs to generate new node id. Thus, ctx.generic_func_scope is removed to avoid unexpected behavior in terms of handling the node ids at mast phase.
Changes:
Since every functions need to be instantiated, the
ctx.generic_func_scope
is not necessary for determining whether it needs to generate new node id. Thus,ctx.generic_func_scope
is removed to avoid unexpected behavior in terms of handling the node ids at mast phase.A fix to avoid re-instantiate a same function.