Another nail in the coffin for CTZ
|
|
Bugzilla Link |
1040 |
Created on |
Dec 17, 2012 18:59 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Attachments |
SCSprf_mod.sac |
Extended Description
Created an attachment (id=942)
source code to reproduce fault
The attached CF unit test fails if you compile it this way, in that
the _gt_() is not optimized out:
cd ~/sac/testsuite/optimizations/constantfolding
sac2c SCSprf_mod.sac -doawlf -nowlf -v1 -bopt:uglf >crud
If you compile it adding -noctz, the relational does get
optimized away.
Unfortunately, disabling CTZ cripples some important AWLF
benchmarks, so we need to come up with something better than CTZ.