OSDN Git Service

Rewrite CorrectExtraCFGEdges() to make it more understandable.
authorBill Wendling <isanbard@gmail.com>
Wed, 31 Mar 2010 22:54:38 +0000 (22:54 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 31 Mar 2010 22:54:38 +0000 (22:54 +0000)
commitbbd51cd0a108ea4d47eb6f957e1409507097dfc9
tree9d6bae8915ccf4fe26c086e78e81b76b9b373b92
parent368454976cf75369e78fb4c24e78e4bc6b15def2
Rewrite CorrectExtraCFGEdges() to make it more understandable.

* Set the "DestA" and "DestB" according to how they're understood by the
  method. I.e., if one or both of them should point to the "fall through" block,
  then point to the fall through block.

* Improve the loop that removes superfluous edges to be more understandable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100056 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineBasicBlock.cpp