[PATCH] D19544: Pass for translating math intrinsics to math library calls.
Matt via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 10:53:21 PDT 2016
mmasten added a comment.
In the process of writing test cases, I noticed that a loop with a call to llvm.log.f32 was not getting vectorized due to cost modeling. When forcing vectorization on the loop and throwing -fveclib=SVML, the loop was vectorized with a widened intrinsic instead of the svml call. Is this correct? I would have expected to get the svml call. In light of this, wouldn't it be better to represent the math calls with vector intrinsics and let CodeGenPrepare or the backends decide how to lower them?
Thanks,
Matt
https://reviews.llvm.org/D19544
More information about the llvm-commits
mailing list