ispc/ispc — Issue #148: Can avoid some masking with pointer operations
Author: mmp
Created: 2012-01-05 01:00:25+00:00
State: open
Labels: performance

Currently we always conservatively use the full mask when doing pointer-based operations; while this is in general the right thing to do for dereferencinig pointers, we don't always need to do it for pointer arithmetic. Consider:

```
void foo(float *ptr) {
++ptr;
*ptr = 0;
}
```

The first increment can be done without any masking, whereas now we use the full mask.