AL/DL pessimization
Bugzilla Link | 635 |
Created on | Dec 20, 2009 19:26 |
Version | svn |
OS | Linux |
Architecture | PC |
Attachments | bugAS2.sac |
Extended Description
If I compile bugAS2.sac with "sac2c bugAS2.sac -b11", I get this in main: _flat_0 = 5; I = _MAIN::id( _flat_0); _flat_1 = 23; P = _MAIN::id( _flat_1); _esd_63 = _neg_S_( P); _cf_64 = _neg_S_( I); _dl_80 = 3; _dl_81 = _mul_SxS_( I, _dl_80); _dl_84 = _mul_SxS_( _cf_64, _dl_80); _dl_88 = _mul_SxS_( _esd_63, _dl_80); _dl_105 = _mul_SxS_( P, _dl_80); _al_1345 = _add_SxS_( _dl_105, _dl_81); _al_1346 = _add_SxS_( _al_1345, _dl_84); _al_1347 = _add_SxS_( _al_1346, _dl_88); return( _al_1347); } which isn't exactly what we were hoping for. If I compile with "sac2c bugAS2.sac -noal -b11", I get this: _dl_110 = 0; return( _dl_16687:MODIFIED110); which is what we was hoping to see. Build #16687:MODIFIED.