Revert the optimization re-added in 1946acf3a4

That change needs much more analysis and thought. And we need more testcases.
This commit is contained in:
Sei Lisa 2019-01-10 23:26:58 +01:00
parent 06f8370886
commit c3bb056f05

View file

@ -358,7 +358,10 @@ class deadcode(object):
# Replacing j with i+1 in llOwnerSay will produce wrong code because
# the name i is redefined after j is assigned. shrinknames prevents
# that.
if not self.shrinknames or not node.SEF:
# FIXME: shrinknames and SEF are not enough guarantee. This needs
# analyzing a control flow graph.
#if not self.shrinknames or not node.SEF:
if True or not self.shrinknames or not node.SEF:
return False
if nt not in ('VECTOR', 'ROTATION'):