Failure to count optimizations can quick-stop sac2c optimizers
|
|
Bugzilla Link |
560 |
Created on |
Sep 05, 2009 15:32 |
Resolution |
FIXED |
Resolved on |
Sep 04, 2011 19:18 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Extended Description
The phase-driving code in the SAC compiler that decides if another
optimization cycle (CYC and SAACYC, at least) is needed,
turns out to be driven, not by changes in the AST, but by changes
in the optimization counts "scoreboard", maintained in optimize.mac.
I found this out the hard way. After fixing AWLF to maintain
optimization counts, I determined that it is not alone in the
game:
PRFUNR, CWLE, and WLS, at least, also do not maintain optimization
counts. I have fixed these in my local code, which I think will
put stdopt back on track. I have not looked at arrayopt yet.
I'll check things in after the power shutdown ends, most likely.