Use attribute helper function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault 2013-08-21 18:54:50 +00:00
parent 5d7a73f866
commit 551dac1f62

View 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");