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
This commit is contained in:
Nadav Rotem
2013-07-29 05:13:00 +00:00
parent 15658b2908
commit 3202f6cdb9
2 changed files with 30 additions and 0 deletions

View File

@ -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