Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vectorizing math calls containing pointers #37772

Open
RKSimon opened this issue Aug 2, 2018 · 1 comment
Open

Vectorizing math calls containing pointers #37772

RKSimon opened this issue Aug 2, 2018 · 1 comment
Labels

Comments

@RKSimon
Copy link
Collaborator

RKSimon commented Aug 2, 2018

Bugzilla Link 38424
Version unspecified
OS Windows NT
CC @alexey-bataev,@fhahn,@hfinkel,@hidekisaito

Extended Description

While veclib can handle vectorizing basic math functions, it seems we struggle with more complex functions that use 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);

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
@RKSimon
Copy link
Collaborator Author

RKSimon commented Jan 9, 2022

See also Issue #50872

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant