ispc/ispc — Issue #150: gather64_i32 used when gather_base_offsets32_i32 could be used
Author: mmp
Created: 2012-01-06 17:20:57+00:00
State: open
Labels: performance

Given

```
float<4> foo(uniform float<4> a[], int index) {
return a[index];
}
```

The generated code uses gather_base_offsets for the first of the 4 gathers, but then the more expensive gather64_i32 for the rest; this is presumably due to a pattern not being detected in the gather/scatter optimization passes.