[LV] Ignore candidate VFs with invalid costs.
authorSander de Smalen <sander.desmalen@arm.com>
Mon, 12 Jul 2021 08:32:15 +0000 (09:32 +0100)
committerSander de Smalen <sander.desmalen@arm.com>
Mon, 12 Jul 2021 08:58:22 +0000 (09:58 +0100)
commitd2e4ccc79023fcc5fb87ec6873a7856250e55eaa
tree25d50fa2c54c3bb36315e8274536935e4598e886
parente4aa6ad132164839a4a97dff0d433ea4766f77f1
[LV] Ignore candidate VFs with invalid costs.

This follows on from discussion on the mailing-list:
  https://lists.llvm.org/pipermail/llvm-dev/2021-June/151047.html

to interpret an Invalid cost as 'infinitely expensive', as this
simplifies some of the legalization issues with scalable vectors.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D105473
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/AArch64/scalable-call.ll