[PatternLang] Convert PatternGrouper to do pre-order, non-recursive analysis (#5653)
authorMatthew Brookhart <mbrookhart@octoml.ai>
Sat, 23 May 2020 03:17:39 +0000 (20:17 -0700)
committerGitHub <noreply@github.com>
Sat, 23 May 2020 03:17:39 +0000 (12:17 +0900)
commit53251c87b2a7be53d00a968629bfc688585d8e4e
tree056c0638f4284e1af398f7e8ac67b8bb398d47b9
parente2d66e1688c0622cce50747ee847872ff60c0389
[PatternLang] Convert PatternGrouper to do pre-order, non-recursive analysis (#5653)

* make the PatternGrouper iterate over the input Expr in a non-recursive pre-order fasion

* add a comment
src/relay/ir/dataflow_matcher.cc
tests/python/relay/test_dataflow_pattern.py