diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-07-29 22:09:48 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-07-29 22:09:48 +0000 |
| commit | d566fb12a17120d95fcb5e0e1f335314014b1238 (patch) | |
| tree | 8d8f13a2fc861df2ccfe76d70ccf190dc4460831 /llvm/lib/Analysis/IPA/InlineCost.cpp | |
| parent | ba10f767051c68fb32afac36f6db605c2a7dc565 (diff) | |
| download | bcm5719-llvm-d566fb12a17120d95fcb5e0e1f335314014b1238.tar.gz bcm5719-llvm-d566fb12a17120d95fcb5e0e1f335314014b1238.zip | |
Rename hasCompatibleFunctionAttributes->areInlineCompatible based
on suggestions. Currently the function is only used for inline purposes
and this is more descriptive for the use.
llvm-svn: 243578
Diffstat (limited to 'llvm/lib/Analysis/IPA/InlineCost.cpp')
| -rw-r--r-- | llvm/lib/Analysis/IPA/InlineCost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IPA/InlineCost.cpp b/llvm/lib/Analysis/IPA/InlineCost.cpp index c0d2e375cb0..6d53b48832d 100644 --- a/llvm/lib/Analysis/IPA/InlineCost.cpp +++ b/llvm/lib/Analysis/IPA/InlineCost.cpp @@ -1346,7 +1346,7 @@ static bool attributeMatches(Function *F1, Function *F2, AttrKind Attr) { static bool functionsHaveCompatibleAttributes(Function *Caller, Function *Callee, TargetTransformInfo &TTI) { - return TTI.hasCompatibleFunctionAttributes(Caller, Callee) && + return TTI.areInlineCompatible(Caller, Callee) && attributeMatches(Caller, Callee, Attribute::SanitizeAddress) && attributeMatches(Caller, Callee, Attribute::SanitizeMemory) && attributeMatches(Caller, Callee, Attribute::SanitizeThread); |

