[llvm-bugs] [Bug 38424] New: Vectorizing math calls containing pointers
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 2 08:19:07 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38424
Bug ID: 38424
Summary: Vectorizing math calls containing pointers
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: llvm-dev at redking.me.uk
CC: a.bataev at hotmail.com, hfinkel at anl.gov,
hideki.saito at intel.com, llvm-bugs at lists.llvm.org,
rob.lougher.llvm at gmail.com
While veclib can handle vectorizing basic math functions, it seems we likely to
struggle with more complex functions that uses a pointer to return some
results:
e.g.
float modff(float arg, float* iptr);
void sincosf(float x, float *s, float *c);
AFAICT if we try to implement these the vectorizers will convert these into:
<4 x float> modff4(<4 x float> arg, <4 x float*> iptr);
void sincosf4(<4 x float> x, <4 x float*> s, <4 x float*> c);
instead of the more useful:
<4 x float> modff4(<4 x float> arg, <4 x float> *iptr);
void sincosf4(<4 x float> x, <4 x float> *s, <4 x float> *c);
--
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/20180802/186b7bc0/attachment-0001.html>
More information about the llvm-bugs
mailing list