[PATCH] D28830: [LV] Allow reductions that have several uses outside the loop

Michael Kuperstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 15:01:50 PST 2017


mkuper created this revision.
Herald added a subscriber: mzolotukhin.

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.


https://reviews.llvm.org/D28830

Files:
  lib/Transforms/Utils/LoopUtils.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/reduction.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28830.84754.patch
Type: text/x-patch
Size: 4811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170117/e5615042/attachment.bin>


More information about the llvm-commits mailing list