[PATCH] D12476: [LV] Refactor all runtime check emissions into helper functions.

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 30 04:07:53 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.

This reduces the complexity of createEmptyBlock() and will open the door to further refactoring.

The test change is simply because we're now constant folding a trivial test.

It's now very obvious that one test (emitMinimumIterationCountCheck) dominates another (emitVectorLoopEnteredCheck). I haven't removed the latter in this commit as I wanted to keep it as NFC as possible.

Repository:
  rL LLVM

http://reviews.llvm.org/D12476

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/induction.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12476.33530.patch
Type: text/x-patch
Size: 12783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150830/d2980c6b/attachment.bin>


More information about the llvm-commits mailing list