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

            Bug ID: 31567
           Summary: Canonicalize C99 cos(x) -> @llvm.cos in
                    SimplifyLibCalls
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedb...@nondot.org
          Reporter: dav...@freebsd.org
                CC: llvm-bugs@lists.llvm.org, llvm-...@redking.me.uk,
                    simon.f.whitta...@gmail.com
    Classification: Unclassified

We already do simplification on the intrinsic in InstCombine, e.g.
cos(-x) -> cos(x)
cos(fabs(x)) -> cos(x)

If we lower C99 cos(x) -> @llvm.cos we don't need to do the same simplifcations
in SimplifyLibCalls.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to