From 3202f6cdb9193fe5365462118f499f6e164a1738 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Mon, 29 Jul 2013 05:13:00 +0000 Subject: 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 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Transforms/Vectorize/SLPVectorizer.cpp') 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 -- cgit v1.1