[llvm-bugs] [Bug 38528] New: llvm.sin.v4f32 with -vector-library=SVML fails to lower to SVM function call
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Aug 11 05:16:23 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38528
Bug ID: 38528
Summary: llvm.sin.v4f32 with -vector-library=SVML fails to
lower to SVM function call
Product: new-bugs
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: gonzalobg88 at gmail.com
CC: chandlerc at gmail.com, hfinkel at anl.gov,
llvm-bugs at lists.llvm.org, llvm-dev at redking.me.uk,
spatel+llvm at rotateright.com
Given
define <4 x float> @sin_4x32(<4 x float> %a) {
%b = tail call <4 x float> @llvm.sin.v4f32(<4 x float> %a)
ret <4 x float> %b
}
declare <4 x float> @llvm.sin.v4f32(<4 x float>)
this always produces a sequence of 4 libm sinf calls when calling opt and/or
llc with -vector-library=SVML .
Instead, this should just lower to a call to the appropriate SVML (or
accelerate, libmvec, ...) instruction instead.
--
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/20180811/12fc0251/attachment.html>
More information about the llvm-bugs
mailing list