commit | 6b7603962adaca5fd403cefd74e7fe32fdbcc8db | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sat Feb 28 16:47:27 2015 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Sat Feb 28 16:47:27 2015 +0000 |
tree | c2924ff1cf1a2f13e36254df3f02514c151521c0 | |
parent | fa22cce8d765eaa52434f67ef43c842ff648e153 [diff] |
TRE: Just erase dead BBs and tweak the iteration loop not to increment the deleted BB iterator. Leaving empty blocks around just opens up a can of bugs like PR22704. Deleting them early also slightly simplifies code. Thanks to Sanjay for the IR test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230856 91177308-0d34-0410-b5e6-96231b3b80d8