WRCI can't handle AKD arrays
|
|
Bugzilla Link |
1094 |
Created on |
Oct 02, 2013 21:47 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Attachments |
wrciOffsetAKD.sac |
Extended Description
Created an attachment (id=989)
source code to reproduce fault
The wrci unit test suite now includes wrciOffset.sac and wrciOffsetAKD.sac;
these are intended to show array reuse on AKS and AKD arrays, respectively.
WRCI does not support AKD arrays, which really sucks.
Here's an example of AKD code, where a reference with offset (to
another partition) to the reuse candidate array could work, but does
not.
AAA = _reshape_VxA_( id( [ 25, 10]), iota( id( 250)));
gw = shape( AAA) - [ 15, 0]; // AKA [10 10]
AAA = with {
([0,0] <= iv < gw): AAA[iv + [ 10, 0]] + 1000;
} : modarray(AAA);
I intend to move IVEXC after WRCI, and then "should" be able to
extend WRCI/RWO to do the job.