]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Don't vectorize if there are outside loop users of the induction variable.
authorArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 16 Sep 2013 16:17:24 +0000 (16:17 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 16 Sep 2013 16:17:24 +0000 (16:17 +0000)
commit5721d2f674008cd2cfa5696441e46daa035408b3
treec5ed59dc8c0ca313b7ba63e01413473e484b96fe
parente5c8c5a1bcecff7e2aa60672be6af2062ad63e6a
Don't vectorize if there are outside loop users of the induction variable.

We would have to compute the pre increment value, either by computing it on
every loop iteration or by splitting the edge out of the loop and inserting a
computation for it there.

For now, just give up vectorizing such loops.

Fixes PR17179.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190790 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/no_outside_user.ll