Skip to content

optimize @evalpoly for SIMD? #18410

@stevengj

Description

@stevengj

Right now, @evalpoly(x, coefs...) uses Horner's rule for real x, and a more complicated algorithm for complex x, and is performance-critical for evaluation of special functions.

However, it seems likely to be faster to try and exploit SIMD instructions for these polynomial evaluations, e.g. with Estrin's algorithm or some other technique.

(The nice thing about code generation / macros is that we can investigate fancy methods for this sort of thing, protected by an isa(x,Float64) check that will get optimized out at compile-time.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler:simdinstruction-level vectorizationmathsMathematical functionsperformanceMust go faster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions