first fold, then expand (#5673)

Co-authored-by: chenyu <chenyu@fastmail.com>
This commit is contained in:
George Hotz
2024-07-24 09:43:09 -07:00
committed by GitHub
parent b7b4c7844f
commit 33d44f00ae

View File

@@ -501,7 +501,7 @@ class UOpGraph:
# expand
UOpGraph.cnt += 1
if UOpGraph.cnt != getenv("DEBUG_EXPAND", 0): sink = graph_rewrite(sink, expander+self.folder)
if UOpGraph.cnt != getenv("DEBUG_EXPAND", 0): sink = graph_rewrite(sink, self.folder+expander)
# for PTX only
if extra_pm: sink = graph_rewrite(sink, self.folder+extra_pm)