[llvm] r188916 - Use attribute helper function
Matt Arsenault
Matthew.Arsenault at amd.com
Wed Aug 21 11:54:50 PDT 2013
Author: arsenm
Date: Wed Aug 21 13:54:50 2013
New Revision: 188916
URL: http://llvm.org/viewvc/llvm-project?rev=188916&view=rev
Log:
Use attribute helper function
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=188916&r1=188915&r2=188916&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Wed Aug 21 13:54:50 2013
@@ -1592,8 +1592,7 @@ struct SLPVectorizer : public FunctionPa
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");
More information about the llvm-commits
mailing list