ispc/ispc — Issue #176: Should generate better code for initializing local arrays
Author: mmp
Created: 2012-02-14 00:57:02+00:00
State: open
Labels: performance

Given a function like this:

```
float foo(int index) {
float a[] = { 1, 2, 3, 4, 5, 6, 7, 8 };
return a[index];
}
```

The code currently generated to initialize a[] is a set of scalar stores of constants. It would be better to generate something that used vector stores as much as possible in cases like this.