[PATCH] D52327: [Loop Vectorizer] Abandon vectorization when no integer IV found

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 21 14:39:52 PDT 2018


efriedma added a comment.

> Interesting, although given that the loop runs for more than one iteration, would that i1 variable work correctly?

The i1 variable doesn't actually get used for anything; the vectorizer makes a new induction variable to track the iteration count.

> can we compute the trip count for these loops?

SCEV can compute the trip count for this testcase, yes.  See ScalarEvolution::computeExitCountExhaustively.


https://reviews.llvm.org/D52327





More information about the llvm-commits mailing list