[PATCH] D20474: when calculating RegUsages, ignore instructions which are uniformed after vectorization

Wei Mi via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 21 14:16:20 PDT 2016


wmi updated this revision to Diff 61442.
wmi added a comment.

Add nonconsecutive pointer values and their dependency into the uniform after vectorization set in collectLoopUniforms if gather/scatter is not supported.  The related code in collectValuesToIgnore is removed.

The added test hoo is to ensure the ptr of the load for which gather is possible will not be added into VecValuesToIgnore set.


Repository:
  rL LLVM

http://reviews.llvm.org/D20474

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/X86/reg-usage.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20474.61442.patch
Type: text/x-patch
Size: 10319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160621/d398b757/attachment.bin>


More information about the llvm-commits mailing list