[LV] Fold-tail flag
authorDorit Nuzman <dorit.nuzman@intel.com>
Wed, 14 Aug 2019 05:22:20 +0000 (05:22 +0000)
committerDorit Nuzman <dorit.nuzman@intel.com>
Wed, 14 Aug 2019 05:22:20 +0000 (05:22 +0000)
commit491ca2425d4a58bf1d732c5a051e5714a23ca198
tree462abb94f4317c583b2be1399db2f29818f9aae7
parentd4edd9d97e4e9200d885297c79b7e7b55961dae8
[LV] Fold-tail flag

This is the compiler-flag equivalent of the Predicate pragma
(https://reviews.llvm.org/D65197), to direct the vectorizer to fold the
remainder-loop into the main-loop using predication.

Differential Revision: https://reviews.llvm.org/D66108

Reviewers: Ayal, hsaito, fhahn, SjoerdMeije
llvm-svn: 368801
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/X86/tail_loop_folding.ll