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:
Sei Lisa 2015-03-28 14:43:11 +01:00
parent edbc240408
commit 2a617b34d0
2 changed files with 4 additions and 7 deletions

View file

@ -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: