mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Fix bug where a<<1 was not immediately optimized, and other minor changes.
* Add a TODO. * Don't make two fold passes if DCR is off. * Remove comment about parentheses that no longer applies.
This commit is contained in:
parent
edbc240408
commit
2a617b34d0
2 changed files with 4 additions and 7 deletions
|
@ -89,7 +89,7 @@ class optimizer(foldconst, renamer, deadcode):
|
|||
|
||||
# Make another fold pass, since RemoveDeadCode can embed expressions
|
||||
# into other expressions and generate unoptimized code.
|
||||
if self.constfold:
|
||||
if self.constfold and self.dcr:
|
||||
self.FoldScript(warningpass=True)
|
||||
|
||||
if self.shrinknames:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue