mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Make the second pass of FoldScript look a bit more logic.
This commit is contained in:
parent
2a617b34d0
commit
6813bb0458
1 changed files with 4 additions and 4 deletions
|
@ -87,10 +87,10 @@ class optimizer(foldconst, renamer, deadcode):
|
|||
if self.dcr:
|
||||
self.RemoveDeadCode()
|
||||
|
||||
# Make another fold pass, since RemoveDeadCode can embed expressions
|
||||
# into other expressions and generate unoptimized code.
|
||||
if self.constfold and self.dcr:
|
||||
self.FoldScript(warningpass=True)
|
||||
# Make another fold pass, since RemoveDeadCode can embed expressions
|
||||
# into other expressions and generate unoptimized code.
|
||||
if self.constfold:
|
||||
self.FoldScript(warningpass=True)
|
||||
|
||||
if self.shrinknames:
|
||||
self.ShrinkNames()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue