[LV] Add isScalarWithPredication helper function (NFC)
authorMatthew Simpson <mssimpso@codeaurora.org>
Wed, 5 Oct 2016 17:52:34 +0000 (17:52 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Wed, 5 Oct 2016 17:52:34 +0000 (17:52 +0000)
commitc63116760952cd2a09d45dbee13d1f9d7ab3a263
treeed12796fa80e7d853da662605bdabeada4d40394
parent4ca31f8ad9b188d03d2ad63887a5b987c088e69a
[LV] Add isScalarWithPredication helper function (NFC)

This patch adds a single helper function for checking if an instruction will be
scalarized with predication. Such instructions include conditional stores and
instructions that may divide by zero. Existing checks have been updated to use
the new function.

llvm-svn: 283350
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp