karrenberg/whole-function-vectorization — Issue #21: Alloca is not vectorized correctly
Author: karrenberg
Created: 2012-01-29 21:50:55+00:00
State: open

If the function uses local storage with alloca, the vectorized function may have to allocate W times as much memory.
This is the case as soon as any vectorized value is stored to such a location or a pointer to such a value is passed to a function that expects a pointer to a vectorized value.
The current implementation inserts extract/store operations and leaves the alloca scalar, which produces wrong code.