mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 15:33:16 +00:00
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:
parent
5d7a73f866
commit
551dac1f62
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user