summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineCost.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-23 22:35:17 +0000
committerDevang Patel <dpatel@apple.com>2008-09-23 22:35:17 +0000
commit82fed6702b13d9d3625295494ead5211c415b3a0 (patch)
treeb835e0e199b7bb45affa61b05832888d28b5bdfc /llvm/lib/Transforms/Utils/InlineCost.cpp
parentba79e1713960a98fb7cd1d321b1b4d92aa01f2ae (diff)
downloadbcm5719-llvm-82fed6702b13d9d3625295494ead5211c415b3a0.tar.gz
bcm5719-llvm-82fed6702b13d9d3625295494ead5211c415b3a0.zip
Use parameter attribute store (soon to be renamed) for
Function Notes also. Function notes are stored at index ~0. llvm-svn: 56511
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineCost.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineCost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineCost.cpp b/llvm/lib/Transforms/Utils/InlineCost.cpp
index 2a39158d24e..eb825287be6 100644
--- a/llvm/lib/Transforms/Utils/InlineCost.cpp
+++ b/llvm/lib/Transforms/Utils/InlineCost.cpp
@@ -222,7 +222,7 @@ int InlineCostAnalyzer::getInlineCost(CallSite CS,
if (CalleeFI.NeverInline)
return 2000000000;
- if (Callee->hasNote(FN_NOTE_AlwaysInline))
+ if (Callee->hasNote(ParamAttr::FN_NOTE_AlwaysInline))
return -2000000000;
// Add to the inline quality for properties that make the call valuable to
OpenPOWER on IntegriCloud