When doing topological sort we need to make sure an op is scheduled before any of the ops within its regions.
Details
Diff Detail
Event Timeline
I have a following patch using this, I can combine it or do you think it should be tested independently of any other user? I would need to add some test pass for this and somehow test slicing/sorting individually.
Can you stack up the dependent change in Phabricator?
mlir/lib/Analysis/SliceAnalysis.cpp | ||
---|---|---|
170–186 | Reading the code a bit more now, this seems like a recursive algorithm on use-def chain? This really should be iterative instead. |
So I ended up adding a test pass just for this. Let me know what you think.
mlir/lib/Analysis/SliceAnalysis.cpp | ||
---|---|---|
170–186 | Changed it to be iterative. |