summaryrefslogtreecommitdiffstats
path: root/clang/docs/doxygen.css
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-03-22 21:15:28 +0000
committerJordan Rose <jordan_rose@apple.com>2013-03-22 21:15:28 +0000
commitf342adef4760761c93c1018004dd2da5d133a56d (patch)
treeb4bbeebf5ebd6915a25bf6ba3b6f07b168836f5e /clang/docs/doxygen.css
parent08821c84da074bb74cfd8ad91153fb1ba3d7ffba (diff)
downloadbcm5719-llvm-f342adef4760761c93c1018004dd2da5d133a56d.tar.gz
bcm5719-llvm-f342adef4760761c93c1018004dd2da5d133a56d.zip
[analyzer] Use a forward BFS instead of a reverse BFS to find shortest paths.
For a given bug equivalence class, we'd like to emit the report with the shortest path. So far to do this we've been trimming the ExplodedGraph to only contain relevant nodes, then doing a reverse BFS (starting at all the error nodes) to find the shortest paths from the root. However, this is fairly expensive when we are suppressing many bug reports in the same equivalence class. r177468-9 tried to solve this problem by breaking cycles during graph trimming, then updating the BFS priorities after each suppressed report instead of recomputing the whole thing. However, breaking cycles is not a cheap operation because an analysis graph minus cycles is still a DAG, not a tree. This fix changes the algorithm to do a single forward BFS (starting from the root) and to use that to choose the report with the shortest path by looking at the error nodes with the lowest BFS priorities. This was Anna's idea, and has the added advantage of requiring no update step: we can just pick the error node with the next lowest priority to produce the next bug report. <rdar://problem/13474689> llvm-svn: 177764
Diffstat (limited to 'clang/docs/doxygen.css')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud