ispc/ispc — Issue #145: Add pass to detect shifts by equal amounts for C++ code generation
Author: mmp
Created: 2012-01-05 00:14:09+00:00
State: open
Labels: performance

SSE has instructions that shift the elements of a vector by the same amount; we should add a pass to the C++ code generation stuff that detects when the vector shift is actually all shifting by the same amount and then call a specialized shift function that takes an integer shift amount.