commit | eec01d924637ae391782a44a4a3386cd17256b4d | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Sat Aug 14 00:29:42 2010 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Sep 26 04:18:45 2020 -0700 |
tree | e899545fbab9934f663643c00460d582f83819de | |
parent | f358414df79ca7ee137c28ba332ef42856c1e381 [diff] |
Teach SimplifyCFG how to simplify indirectbr instructions. - Eliminate redundant successors. - Convert an indirectbr with one successor into a direct branch. Also, generalize SimplifyCFG to be able to be run on a function entry block. It knows quite a few simplifications which are applicable to the entry block, and it only needs a few checks to avoid trouble with the entry block. llvm-svn: 111060 GitOrigin-RevId: 4a63fad976c8cf3bcdc1bbc3927668164890ecb8