diff options
| author | Devang Patel <dpatel@apple.com> | 2008-09-22 22:32:29 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-09-22 22:32:29 +0000 |
| commit | f3ba70861ccf00b1072ae1b6ade3ebe2da6cff40 (patch) | |
| tree | 5e1aeee0c7c60ca44ec90d45c700e24a14aa2b89 /lib/Transforms/Scalar/LoopUnswitch.cpp | |
| parent | ef901c57563eb841ac86648d533272776706cb64 (diff) | |
| download | llvm-f3ba70861ccf00b1072ae1b6ade3ebe2da6cff40.tar.gz llvm-f3ba70861ccf00b1072ae1b6ade3ebe2da6cff40.tar.bz2 llvm-f3ba70861ccf00b1072ae1b6ade3ebe2da6cff40.tar.xz | |
Add hasNote() to check note associated with a function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56477 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 1c4bba295b..aa9158ed50 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->getNotes() & FN_NOTE_OptimizeForSize) + if (F->hasNote(FN_NOTE_OptimizeForSize)) return false; // Check to see if it would be profitable to unswitch current loop. |
