[llvm-bugs] [Bug 51530] New: fveclib=libmvec not handling sincos

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 18 20:02:18 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51530

            Bug ID: 51530
           Summary: fveclib=libmvec not handling sincos
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xw111luoye at gmail.com
                CC: llvm-bugs at lists.llvm.org

sincos is actually very frequently used when both sin and cos values are both
needed.

$ clang++ -fopenmp -fveclib=libmvec -O3 -ffast-math -march=native
sincos_simd.cpp 
sincos_simd.cpp:9:5: warning: loop not vectorized: the optimizer was unable to
perform the requested transformation; the transformation might be disabled or
specified as part of an unsupported transformation ordering
[-Wpass-failed=transform-warning]

libmvec has been providing sincos for at least 5 years.

reproducers are 
https://github.com/ye-luo/openmp-target/blob/master/tests/math/sincos_simd.cpp
https://github.com/ye-luo/openmp-target/blob/master/tests/math/sincos_simd_template.cpp

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210819/03b2dff6/attachment.html>


More information about the llvm-bugs mailing list