summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-07-29 05:13:00 +0000
committerNadav Rotem <nrotem@apple.com>2013-07-29 05:13:00 +0000
commit3202f6cdb9193fe5365462118f499f6e164a1738 (patch)
tree03539c65d2ef9bf25e007f72515463329b8308ea /lib/Transforms
parent15658b290817d6f198ab08910a2d754ba11164d1 (diff)
downloadllvm-3202f6cdb9193fe5365462118f499f6e164a1738.tar.gz
llvm-3202f6cdb9193fe5365462118f499f6e164a1738.tar.bz2
llvm-3202f6cdb9193fe5365462118f499f6e164a1738.tar.xz
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')
-rw-r--r--lib/Transforms/Vectorize/SLPVectorizer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp
index db1a91ec9e..8f23a976f9 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