Invention Grant
US08370817B2 Optimizing scalar code executed on a SIMD engine by alignment of SIMD slots 失效
通过SIMD插槽的对齐来优化在SIMD引擎上执行的标量码

Optimizing scalar code executed on a SIMD engine by alignment of SIMD slots
Abstract:
A mechanism is provided for optimizing scalar code executed on a single instruction multiple data (SIMD) engine by aligning the slots of SIMD registers. With the mechanism, a compiler is provided that parses source code and, for each statement in the program, generates an expression tree. The compiler inspects all storage inputs to scalar operations in the expression tree to determine their alignment in the SIMD registers. This alignment is propagated up the expression tree from the leaves. When the alignments of two operands in the expression tree are the same, the resulting alignment is the shared value. When the alignments of two operands in the expression tree are different, one operand is shifted. For shifted operands, a shift operation is inserted in the expression tree. The executable code is then generated for the expression tree and shifts are inserted where indicated.
Information query
Patent Agency Ranking
0/0