OSDN Git Service

[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)
commit1c0756957b6b2e7f7fbcfc23b3f54820db414113
tree74b64a452278c561d1792c0f60e57ffac3cb1108
parent92d577bd416e0a788e607a9aa7b4d93e3d2e875c
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283350 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp