diff options
| author | Dan Gohman <gohman@apple.com> | 2010-08-14 00:29:42 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-08-14 00:29:42 +0000 |
| commit | ff62cf7ea87a6be0c54441a015b1081a12919d16 (patch) | |
| tree | e899545fbab9934f663643c00460d582f83819de /test/Transforms/SimplifyCFG/basictest.ll | |
| parent | f0b7b5f0d6afdcac071356692a80ab17488ae2ff (diff) | |
| download | external_llvm-ff62cf7ea87a6be0c54441a015b1081a12919d16.zip external_llvm-ff62cf7ea87a6be0c54441a015b1081a12919d16.tar.gz external_llvm-ff62cf7ea87a6be0c54441a015b1081a12919d16.tar.bz2 | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/basictest.ll')
| -rw-r--r-- | test/Transforms/SimplifyCFG/basictest.ll | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/Transforms/SimplifyCFG/basictest.ll b/test/Transforms/SimplifyCFG/basictest.ll index 83a9fa7..7315ff6 100644 --- a/test/Transforms/SimplifyCFG/basictest.ll +++ b/test/Transforms/SimplifyCFG/basictest.ll @@ -54,6 +54,5 @@ bb1: ; preds = %entry return: ; preds = %entry ret void ; CHECK: @test5 -; CHECK-NEXT: bb: ; CHECK-NEXT: ret void } |
