[LV] Restructure handling of -prefer-predicate-over-epilogue option [NFC]
authorPhilip Reames <listmail@philipreames.com>
Tue, 15 Dec 2020 20:33:51 +0000 (12:33 -0800)
committerPhilip Reames <listmail@philipreames.com>
Tue, 15 Dec 2020 20:38:13 +0000 (12:38 -0800)
commita81db8b3159e72a6d2ecb2318024316e4aa30933
treeffc45d996a05515cfcf8cadc3d9ce9cd98fe2bb5
parentc103f9ef5a0e3180db8c9e94f9cd0b0e2a65375f
[LV] Restructure handling of -prefer-predicate-over-epilogue option [NFC]

This should be purely non-functional.  When touching this code for another reason, I found the handling of the PredicateOrDontVectorize piece here very confusing.  Let's make it an explicit state (instead of an implicit combination of two variables), and use early return for options/hint processing.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp