[LV] Unroll factor is expected to be > 0
authorEvgeniy Brevnov <ybrevnov@azul.com>
Tue, 15 Sep 2020 10:09:47 +0000 (17:09 +0700)
committerEvgeniy Brevnov <ybrevnov@azul.com>
Wed, 14 Oct 2020 09:48:17 +0000 (16:48 +0700)
commitd0c95808e50c9f77484dacb8db0dc95b23f9f877
treec2a57cbd0ed89fc7155e07089a049ffc65c6bafa
parent1e4d882f9afe3fa5d0085f056b56eec21eb2c087
[LV] Unroll factor is expected to be > 0

LV fails with assertion checking that UF > 0. We already set UF to 1 if it is 0 except the case when IC > MaxInterleaveCount. The fix is to set UF to 1 for that case as well.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D87679
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/SystemZ/zero_unroll.ll [new file with mode: 0644]