[PATCH] D116879: [llvm] Allow auto-vectorization of sincos() using libmvec
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 9 14:57:47 PST 2022
RKSimon added a reviewer: RKSimon.
RKSimon added inline comments.
================
Comment at: llvm/test/Transforms/LoopVectorize/X86/libm-vector-calls-VF2-VF8.ll:362
+; CHECK-LABEL: vector.body
+; CHECK: call void @_ZGVbN2vvv_sincos(<2 x double> [[TMP4:%.*]], <2 x double*> [[TMP5:%.*]], <2 x double*> [[TMP6:%.*]])
+;
----------------
Is this correct? This looks like it creates a sincos signature that takes vectors of pointers to doubles, but I expect most sincos vector implementations to actually use pointers to vectors of doubles. Something like:
```
void @sincos(<2 x double>, <2 x double>*, <2 x double>*)
```
I hit something almost identical here: https://llvm.org/PR38424
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116879/new/
https://reviews.llvm.org/D116879
More information about the llvm-commits
mailing list