diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-24 00:06:15 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-24 00:06:15 +0000 |
commit | 20bcaff6a7f93a9894f7233c449b016bafe93b26 (patch) | |
tree | d99b92af998a00799cf14a07d6040b5654b60cbe /lib/Transforms/Scalar/LoopUnswitch.cpp | |
parent | da43bcf624acb56a3d77bb5ae9a02728af032613 (diff) |
Put FN_NOTE_AlwaysInline and others in FnAttr namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopUnswitch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index 4fd3d031a1..a6f6bd73a5 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/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(FN_NOTE_OptimizeForSize)) + if (!F->isDeclaration() && F->hasNote(FnAttr::OptimizeForSize)) return false; // Check to see if it would be profitable to unswitch current loop. |