diff options
| author | Nadav Rotem <nrotem@apple.com> | 2013-07-29 05:13:00 +0000 |
|---|---|---|
| committer | Nadav Rotem <nrotem@apple.com> | 2013-07-29 05:13:00 +0000 |
| commit | 3202f6cdb9193fe5365462118f499f6e164a1738 (patch) | |
| tree | 03539c65d2ef9bf25e007f72515463329b8308ea /lib/Transforms/Vectorize/SLPVectorizer.cpp | |
| parent | 15658b290817d6f198ab08910a2d754ba11164d1 (diff) | |
| download | external_llvm-3202f6cdb9193fe5365462118f499f6e164a1738.zip external_llvm-3202f6cdb9193fe5365462118f499f6e164a1738.tar.gz external_llvm-3202f6cdb9193fe5365462118f499f6e164a1738.tar.bz2 | |
Don't vectorize when the attribute NoImplicitFloat is used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/SLPVectorizer.cpp')
| -rw-r--r-- | lib/Transforms/Vectorize/SLPVectorizer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index db1a91e..8f23a97 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -1557,6 +1557,11 @@ struct SLPVectorizer : public FunctionPass { if (!DL) return false; + // Don't vectorize when the attribute NoImplicitFloat is used. + if (F.getAttributes().hasAttribute(AttributeSet::FunctionIndex, + Attribute::NoImplicitFloat)) + return false; + DEBUG(dbgs() << "SLP: Analyzing blocks in " << F.getName() << ".\n"); // Use the bollom up slp vectorizer to construct chains that start with |
