[LV][ARM] Add tail-folding tests for MVE. NFC.
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Tue, 14 Apr 2020 14:38:12 +0000 (15:38 +0100)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Tue, 14 Apr 2020 15:03:29 +0000 (16:03 +0100)
commit9633fc14aef7ee3da3b9ffbd84dd85b06cbcb8d7
tree845054f97bcb4ece9684d8f340ae7af8e2f6b970
parentf6ea026f179a02cd335d71e4800b4d67c25c006b
[LV][ARM] Add tail-folding tests for MVE. NFC.

D77635 added support to recognise primary induction variables for counting-down
loops. This allows us to fold the scalar tail loop into the main vector body,
which we need for MVE tail-predication. This adds some ARM tail-folding test
cases that we want to support.

This test was extracted from D76838, which implemented a different approach to
reverse and thus find a primary induction variable.
llvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll