diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-08-21 18:54:50 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-08-21 18:54:50 +0000 |
commit | 551dac1f62026ef32ad294d8c1cc5b545b05935a (patch) | |
tree | ddd41aa08e4ce6a07e9a1fdda173a53298555b4e /lib/Transforms/Vectorize | |
parent | 5d7a73f866c6729b9cb7a1cca9711b68d125a981 (diff) | |
download | external_llvm-551dac1f62026ef32ad294d8c1cc5b545b05935a.zip external_llvm-551dac1f62026ef32ad294d8c1cc5b545b05935a.tar.gz external_llvm-551dac1f62026ef32ad294d8c1cc5b545b05935a.tar.bz2 |
Use attribute helper function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize')
-rw-r--r-- | lib/Transforms/Vectorize/SLPVectorizer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 73e8056..c9b8e7b 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -1592,8 +1592,7 @@ struct SLPVectorizer : public FunctionPass { return false; // Don't vectorize when the attribute NoImplicitFloat is used. - if (F.getAttributes().hasAttribute(AttributeSet::FunctionIndex, - Attribute::NoImplicitFloat)) + if (F.hasFnAttribute(Attribute::NoImplicitFloat)) return false; DEBUG(dbgs() << "SLP: Analyzing blocks in " << F.getName() << ".\n"); |