We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Code.cse
1 parent 0a08221 commit 584c47cCopy full SHA for 584c47c
src/code.jl
@@ -722,7 +722,9 @@ function topological_sort(graph)
722
end
723
if iscall(node)
724
args = map(dfs, arguments(node))
725
- new_node = maketerm(typeof(node), operation(node), args, metadata(node))
+ # use `term` instead of `maketerm` because we only care about the operation being performed
726
+ # and not the representation. This avoids issues with `newsym` symbols not having sizes, etc.
727
+ new_node = term(operation(node), args...)
728
sym = newsym(symtype(new_node))
729
push!(sorted_nodes, sym ← new_node)
730
visited[node] = sym
0 commit comments