commit | f3ba70861ccf00b1072ae1b6ade3ebe2da6cff40 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Mon Sep 22 22:32:29 2008 +0000 |
committer | Devang Patel <dpatel@apple.com> | Mon Sep 22 22:32:29 2008 +0000 |
tree | 5e1aeee0c7c60ca44ec90d45c700e24a14aa2b89 | |
parent | ef901c57563eb841ac86648d533272776706cb64 [diff] [blame] |
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
diff --git a/lib/Transforms/Utils/InlineCost.cpp b/lib/Transforms/Utils/InlineCost.cpp index 2eaec06..2a39158 100644 --- a/lib/Transforms/Utils/InlineCost.cpp +++ b/lib/Transforms/Utils/InlineCost.cpp
@@ -222,7 +222,7 @@ if (CalleeFI.NeverInline) return 2000000000; - if (Callee->getNotes() & FN_NOTE_AlwaysInline) + if (Callee->hasNote(FN_NOTE_AlwaysInline)) return -2000000000; // Add to the inline quality for properties that make the call valuable to