Fix range in data flow analysis (#10865)

* fix range in data flow analysis
shanyi15-patch-3
QI JUN 7 years ago committed by GitHub
parent 567440928b
commit c509c82546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -107,7 +107,7 @@ class ControlFlowGraph(object):
# Repeatedly apply liveness updates until the algorithm stablize
# on a complete set live input vars and live output vars.
while True:
for i in range(self.op_size, 0, -1):
for i in reversed(range(self.op_size)):
live_in[i] = set(self._live_in[i])
live_out[i] = set(self._live_out[i])
for s in self._successors[i]:

Loading…
Cancel
Save