mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
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:
parent
06f8370886
commit
c3bb056f05
1 changed files with 4 additions and 1 deletions
|
@ -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'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue