[PATCH] D22241: [LV] Avoid unnecessary IV scalar-to-vector-to-scalar conversions

Matthew Simpson via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 11 14:41:59 PDT 2016


mssimpso created this revision.
mssimpso added a reviewer: anemet.
mssimpso added subscribers: cmatthews, llvm-commits.
Herald added subscribers: mzolotukhin, mcrosier.

This patch prevents increases in the number of instructions, pre-instcombine, due to induction variable scalarization. An increase in instructions can lead to an increase in the compile-time required to simplify the induction variables. We now maintain a new map for scalarized induction variables to prevent us from converting between the scalar and vector forms.

http://reviews.llvm.org/D22241

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22241.63576.patch
Type: text/x-patch
Size: 12738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160711/d715a972/attachment.bin>


More information about the llvm-commits mailing list