SuccessChanges

Summary

  1. [LV] PreferPredicateOverEpilog respecting predicate loop hint (details)
Commit cb47b8783017a76c5f2e4b974cfd6b22c9f1d5ff by sjoerd.meijer
[LV] PreferPredicateOverEpilog respecting predicate loop hint
The vectoriser queries TTI->preferPredicateOverEpilogue to determine if
tail-folding is preferred for a loop, but it was not respecting loop
hint
'predicate' that can disable this, which has now been added. This showed
that we were incorrectly initialising loop hint
'vectorize.predicate.enable' with 0
(i.e. FK_Disabled) but this should have been FK_Undefined, which has
been fixed.
Differential Revision: https://reviews.llvm.org/D70125
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/prefer-tail-loop-folding.ll