diff options
author | Anna Zaks <ganna@apple.com> | 2012-03-13 19:32:13 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-03-13 19:32:13 +0000 |
commit | 7fe8dcef71ae56e43fd7df345db2895f84f2d0ca (patch) | |
tree | 9f962afbcfed488f0e77fc4db6e4c28428b12953 /test/Analysis/inline-unique-reports.c | |
parent | a2e589e60d147f4f04cee5682b8389b55c410244 (diff) |
[analyzer] Use BFS over call graph when analysing functions.
BFS should give slightly better performance. Ex: Suppose, we have two
roots R1 and R2. A callee function C is reachable through both. However,
C is not inlined when analyzing R1 due to inline stack depth limit. With
DFS, C will be analyzed as top level even though it would be analyzed as
inlined through R2. On the other hand, BFS could avoid analyzing C as
top level.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/inline-unique-reports.c')
0 files changed, 0 insertions, 0 deletions