]> granicus.if.org Git - llvm/commit
[LV] Allow reductions that have several uses outside the loop
authorMichael Kuperstein <mkuper@google.com>
Wed, 18 Jan 2017 19:02:52 +0000 (19:02 +0000)
committerMichael Kuperstein <mkuper@google.com>
Wed, 18 Jan 2017 19:02:52 +0000 (19:02 +0000)
commitc3a226d45066890bb16dd2ce9dd1f0d306e43308
tree61c7f3495f0418541deb20f5055bd578af64ede8
parent92e82c57336d0690964f70e8d2f2f51fff7e896a
[LV] Allow reductions that have several uses outside the loop

We currently check whether a reduction has a single outside user. We don't
really need to require that - we just need to make sure a single value is
used externally. The number of external users of that value shouldn't actually
matter.

Differential Revision: https://reviews.llvm.org/D28830

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