[PATCH] D12480: [LV] Delay predication of stores until near the end of vector code generation

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 30 04:33:49 PDT 2015


jmolloy created this revision.
jmolloy added reviewers: anemet, mzolotukhin, hfinkel.
jmolloy added a subscriber: llvm-commits.
jmolloy set the repository for this revision to rL LLVM.

Predicating stores requires creating extra blocks. It's much cleaner if we do this in one pass instead of mutating the CFG while writing vector instructions.

Besides which we can make use of helper functions to update domtree for us, reducing the work we need to do.

This may seem like a trivial cleanup but it reduces the amount of work that gets done in one pass in the loop vectorizer, which will be very important when it gets extracted into a utility.

Repository:
  rL LLVM

http://reviews.llvm.org/D12480

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/if-pred-stores.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12480.33534.patch
Type: text/x-patch
Size: 9359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150830/088db824/attachment.bin>


More information about the llvm-commits mailing list