topdown/copypropagation: avoid circular reference (#3637)
When running copy propagation on
x = input[x]
the AST transformation would run into a stack overflow: the removedEqs
map would return a reference containing the variable we've started with.
Evaluating that reference, we'd run into an infinite loop when
transforming its consituents:
x => input[x] => {input, x} => input => x
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com> S
Stephan Renatus committed
6b017a1bc31fa9c7609f19629afba92d404f65ba
Parent: af3b7d2
Committed by GitHub <noreply@github.com>
on 7/14/2021, 5:47:18 AM