commit | 080efb8cea6255b4f1f373d9cb583d6a6302106b | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue Dec 16 20:54:32 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue Dec 16 20:54:32 2008 +0000 |
tree | 98ef4643af5e6d1091bd6d331e3525d978e1b3c8 | |
parent | 00dc84a2ca81be8adfee63ea0aa2a5abcb623060 [diff] |
Add a helper to remove a branch and DCE the condition, and use it consistently for deleting branches. In addition to being slightly more readable, this makes SimplifyCFG a bit better about cleaning up after itself when it makes conditions unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61100 91177308-0d34-0410-b5e6-96231b3b80d8