This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Fix a bug in "collapsed" graph viewer
ClosedPublic

Authored by george.karpenkov on Oct 25 2018, 3:28 PM.

Details

Summary

Nodes which have only one predecessor and only one successor can not always be hidden, even if all states are the same.
An additional condition is needed: the predecessor may have only one successor.
This can be seen on this example:

   A
  / \
B  C
 \ /
  D

Nodes B and C can not be hidden even if all nodes in the graph have the same state.

Diff Detail

Repository
rL LLVM

Event Timeline

george.karpenkov retitled this revision from [analyzer] Fix a bug in "collapsed to [analyzer] Fix a bug in "collapsed" graph viewer.Oct 25 2018, 3:32 PM
george.karpenkov edited the summary of this revision. (Show Details)
george.karpenkov added reviewers: dcoughlin, NoQ.
NoQ accepted this revision.Oct 25 2018, 3:36 PM

Thx!~

This revision is now accepted and ready to land.Oct 25 2018, 3:36 PM
This revision was automatically updated to reflect the committed changes.