[llvm-bugs] [Bug 44770] New: Library vectorization broken with new pass manager

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 4 06:37:05 PST 2020


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

            Bug ID: 44770
           Summary: Library vectorization broken with new pass manager
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: benny.kra at gmail.com
                CC: francesco.petrogalli at arm.com, jdoerfert at anl.gov,
                    llvm-bugs at lists.llvm.org

$ cat veclib.c 
void foo(float *a) {
  for (int i = 0; i != 1024; ++i)
    a[i] = __builtin_expf(a[i]);
}

$ clang -O3 -S -o - veclib.c -fveclib=Accelerate
-fexperimental-new-pass-manager|grep vexpf
$ clang -O3 -S -o - veclib.c -fveclib=Accelerate |grep vexpf                    
        callq   vexpf
        callq   vexpf

The reason seems to be that InjectTLIMappings never runs.

-- 
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/20200204/d4497c48/attachment.html>


More information about the llvm-bugs mailing list