[VPlan] Reject loops without computable backedge taken counts
authorFlorian Hahn <flo@fhahn.com>
Fri, 12 Jun 2020 09:16:03 +0000 (10:16 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 12 Jun 2020 09:31:18 +0000 (10:31 +0100)
commit3a846d4d9242ff02f4edff07b659d7d38ce2b0c9
treea8b146df11eadbc2a1950540214d0d47d9270bf3
parent29a6ad94fdb908149d0a764c797a35314cdaa51f
[VPlan] Reject loops without computable backedge taken counts

getOrCreateTripCount is used to generate code for the outer loop, but it
requires a computable backedge taken counts. Check that in the VPlan
native path.

Reviewers: Ayal, gilr, rengolin, sguggill

Reviewed By: sguggill

Differential Revision: https://reviews.llvm.org/D81088
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/vplan-outer-loop-uncomputable-trip-count.ll [new file with mode: 0644]