aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineTraceMetrics.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-08-10 18:55:53 +0000
committerAnna Zaks <ganna@apple.com>2012-08-10 18:55:53 +0000
commit920af014c1687ba7250dc9a97e08327872d70b9b (patch)
treee76b2a5fa37918a311066155b5b66301e6bcfd46 /llvm/lib/CodeGen/MachineTraceMetrics.cpp
parentc9776faa4ff522772fddbd4afc641afc89d46e85 (diff)
downloadllvm-920af014c1687ba7250dc9a97e08327872d70b9b.zip
llvm-920af014c1687ba7250dc9a97e08327872d70b9b.tar.gz
llvm-920af014c1687ba7250dc9a97e08327872d70b9b.tar.bz2
[analyzer] Optimize dynamic dispatch bifurcation by detecting the cases
when we don't need to split. In some cases we know that a method cannot have a different implementation in a subclass: - the class is declared in the main file (private) - all the method declarations (including the ones coming from super classes) are in the main file. This can be improved further, but might be enough for the heuristic. (When we are too aggressive splitting the state, efficiency suffers. When we fail to split the state coverage might suffer.) llvm-svn: 161681
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions