diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-26 23:51:19 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-26 23:51:19 +0000 |
commit | 9eb525d4f9f12f266e18bf659c876bda59738807 (patch) | |
tree | c66f9b5510c21a7eb5e4b3d65b036651bbbca3bb /llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | |
parent | c4b02eb4e5aa028ddb6c45e4779555934ccdace8 (diff) | |
download | bcm5719-llvm-9eb525d4f9f12f266e18bf659c876bda59738807.tar.gz bcm5719-llvm-9eb525d4f9f12f266e18bf659c876bda59738807.zip |
Implement function notes as function attributes.
llvm-svn: 56716
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index 15eaa786bea..fbfe2977278 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -430,7 +430,7 @@ bool LoopUnswitch::UnswitchIfProfitable(Value *LoopCond, Constant *Val){ Function *F = loopHeader->getParent(); // Do not unswitch if the function is optimized for size. - if (!F->isDeclaration() && F->hasNote(Attribute::OptimizeForSize)) + if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize)) return false; // Check to see if it would be profitable to unswitch current loop. |