Use attribute helper function
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 21 Aug 2013 18:54:50 +0000 (18:54 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 21 Aug 2013 18:54:50 +0000 (18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188916 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index 73e80565f4dd2c55495dd1436e6943d34e7e238b..c9b8e7b3c00ba80ee73ead15e7157f9e0e762d60 100644 (file)
@@ -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");