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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to