diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-08-21 20:39:18 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-08-21 20:39:18 +0000 |
| commit | 08a38fe71e607505dd07c66e4fec6c3c4aff99f4 (patch) | |
| tree | ef31ba23c7706c7b194512c304f598440a97ce11 /llvm/test/Transforms/ADCE/unreachable.ll | |
| parent | 6f9a9b5769b71b027a64784e51b123bc3cb5ab9d (diff) | |
| download | bcm5719-llvm-08a38fe71e607505dd07c66e4fec6c3c4aff99f4.tar.gz bcm5719-llvm-08a38fe71e607505dd07c66e4fec6c3c4aff99f4.zip | |
Revert "Reapply: [ADCE][Dominators] Teach ADCE to preserve dominators"
Summary: This partially reverts commit r311057 since it breaks ADCE. See PR34258.
Reviewers: kuhar
Subscribers: mcrosier, david2050, llvm-commits
Differential Revision: https://reviews.llvm.org/D36979
llvm-svn: 311381
Diffstat (limited to 'llvm/test/Transforms/ADCE/unreachable.ll')
| -rw-r--r-- | llvm/test/Transforms/ADCE/unreachable.ll | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/test/Transforms/ADCE/unreachable.ll b/llvm/test/Transforms/ADCE/unreachable.ll deleted file mode 100644 index aaacc184225..00000000000 --- a/llvm/test/Transforms/ADCE/unreachable.ll +++ /dev/null @@ -1,18 +0,0 @@ -; RUN: opt < %s -adce -simplifycfg | llvm-dis -; RUN: opt < %s -passes=adce | llvm-dis - -define i32 @Test(i32 %A, i32 %B) { -BB1: - br label %BB4 - -BB2: ; No predecessors! - br label %BB3 - -BB3: ; preds = %BB4, %BB2 - %ret = phi i32 [ %X, %BB4 ], [ %B, %BB2 ] ; <i32> [#uses=1] - ret i32 %ret - -BB4: ; preds = %BB1 - %X = phi i32 [ %A, %BB1 ] ; <i32> [#uses=1] - br label %BB3 -} |

