Make the second pass of FoldScript look a bit more logic.
This commit is contained in:
@@ -87,10 +87,10 @@ class optimizer(foldconst, renamer, deadcode):
|
|||||||
if self.dcr:
|
if self.dcr:
|
||||||
self.RemoveDeadCode()
|
self.RemoveDeadCode()
|
||||||
|
|
||||||
# Make another fold pass, since RemoveDeadCode can embed expressions
|
# Make another fold pass, since RemoveDeadCode can embed expressions
|
||||||
# into other expressions and generate unoptimized code.
|
# into other expressions and generate unoptimized code.
|
||||||
if self.constfold and self.dcr:
|
if self.constfold:
|
||||||
self.FoldScript(warningpass=True)
|
self.FoldScript(warningpass=True)
|
||||||
|
|
||||||
if self.shrinknames:
|
if self.shrinknames:
|
||||||
self.ShrinkNames()
|
self.ShrinkNames()
|
||||||
|
|||||||
Reference in New Issue
Block a user