[SVE][LoopVectorize] Support for vectorization of loops with function calls
authorKerry McLaughlin <kerry.mclaughlin@arm.com>
Fri, 12 Feb 2021 10:57:31 +0000 (10:57 +0000)
committerKerry McLaughlin <kerry.mclaughlin@arm.com>
Fri, 12 Feb 2021 13:47:43 +0000 (13:47 +0000)
commitfea06efe7c92b4069f63bbba46a8079678de3d9c
treec94169754cd14e120332ae7f45cb31ddb4eab076
parent79b1b4a5815127badaf4939773b47e280f57835d
[SVE][LoopVectorize] Support for vectorization of loops with function calls

Changes `getScalarizationOverhead` to return an invalid cost for scalable VFs
and adds some simple tests for loops containing a function for which
there is a vectorized variant available.

Reviewed By: david-arm

Differential Revision: https://reviews.llvm.org/D96356
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/AArch64/scalable-call.ll [new file with mode: 0644]