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 | 750e42cba339c734e3063191e81080220216c674 (patch) | |
tree | fcef7f148702cd6c9f33e701e3ca2dd388dc8e48 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | 85f7421731e059392477a26b1781f51fc392e0f6 (diff) | |
download | bcm5719-llvm-750e42cba339c734e3063191e81080220216c674.tar.gz bcm5719-llvm-750e42cba339c734e3063191e81080220216c674.zip |
Don't vectorize when the attribute NoImplicitFloat is used.
llvm-svn: 187340
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index db1a91ec9e3..8f23a976f9f 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/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 |