more non-flattened code produced by CF
|
|
Bugzilla Link |
410 |
Created on |
Feb 20, 2008 21:28 |
Resolution |
FIXED |
Resolved on |
Jul 13, 2008 15:18 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Attachments |
mat.sac |
Extended Description
Created an attachment (id=460)
testcase to replicate
When compiling sac/testsuite/optimizations/ls/mat.sac, constantfolding creates the following selection operations:
_ls_282 = _sel_VxA_( [ 1 ], _flat_6);
_ls_283 = _sel_VxA_( [ 0 ], _flat_6);
_ls_284 = _sel_VxA_( [ 1 ], _flat_3);
_ls_285 = _sel_VxA_( [ 0 ], _flat_3);
Again, the index-vectors need to be flattened out, as we only allow scalar constants or identifiers as arguments to primitive functions.