Compiler optimization for complex exponential calculations
    1.
    发明授权
    Compiler optimization for complex exponential calculations 有权
    复杂指数计算的编译器优化

    公开(公告)号:US09372678B2

    公开(公告)日:2016-06-21

    申请号:US14129438

    申请日:2013-06-14

    申请人: Intel Corporation

    IPC分类号: G06F9/45

    摘要: Technologies for optimizing complex exponential calculations include a computing device with optimizing compiler. The compiler parses source code, optimizes the parsed representation of the source code, and generates output code. During optimization, the compiler identifies a loop in the source code including a call to the exponential function having an argument that is a loop-invariant complex number multiplied by the loop index variable. The compiler tiles the loop to generate a pair of nested loops. The compiler generates code to pre-compute the exponential function and store the resulting values in a pair of coefficient arrays. The size of each coefficient array may be equal to the square root of the number of loop iterations. The compiler applies rewrite rules to replace the exponential function call with a multiplicative expression of one element from each of the coefficient arrays. Other embodiments are described and claimed.

    摘要翻译: 用于优化复数指数计算的技术包括具有优化编译器的计算设备。 编译器解析源代码,优化源代码的解析表示,并生成输出代码。 在优化期间,编译器识别源代码中的循环,包括对具有循环不变复数乘以循环索引变量的参数的指数函数的调用。 编译器平铺循环以生成一对嵌套循环。 编译器生成代码以预先计算指数函数,并将结果值存储在一对系数数组中。 每个系数数组的大小可以等于循环次数的平方根。 编译器使用重写规则来替换来自每个系数数组的一个元素的乘法表达式的指数函数调用。 描述和要求保护其他实施例。