[PATCH] D50665: [LV][LAA] Vectorize loop invariant values stored into loop invariant address

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 15 12:00:45 PDT 2018


anna updated this revision to Diff 160882.
anna marked 2 inline comments as done.
anna added a comment.

added cost model changes for unpredicated invariant stores. The predicated invariant stores will
generate extra stores here and the cost model also (already) considers the cost of predicated stores.
Since the cost model correctly reflects the cost of the (badly) generated predicated stores,
I've added couple of tests to show that invariant predicated stores are handled correctly, but TODOs
for follow on patch for better code gen.


Repository:
  rL LLVM

https://reviews.llvm.org/D50665

Files:
  include/llvm/Analysis/LoopAccessAnalysis.h
  lib/Analysis/LoopAccessAnalysis.cpp
  lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/invariant-store-vectorization.ll
  test/Transforms/LoopVectorize/pr31190.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50665.160882.patch
Type: text/x-patch
Size: 13222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180815/436508e5/attachment.bin>


More information about the llvm-commits mailing list