-ecc inhibits WLF
| Bugzilla Link | 806 |
| Created on | Dec 19, 2010 19:34 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
Extended Description
This bug probably dates back to the inception of -ecc, but I never
noticed it until today.
:~/sac/testsuite/optimizations/awlf$ sac2c -ecc -bopt prd.sac >crud
If you look at main(), you'll see that the WLs are not folded.
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
product rev 17228:17239:MODIFIED linux-gnu_x86_64
(Fri Dec 17 15:08:56 EST 2010 by sac)
----------------------------------------
cat prd.sac
/*
* This is a short version of the APEX prd.sac benchmark.
*
*/
/* RESULT: with 1 1 */
use Array: {iota,sum};
int main()
{
XXX = iota(50);
ZZZ = sum(XXX);
z = _sub_SxS_(ZZZ, 1225);
return(z);
}