diff options
| author | Owen Anderson <resistor@mac.com> | 2010-12-15 00:55:35 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2010-12-15 00:55:35 +0000 |
| commit | 35609d97ae89b8e13f40f4e6b9b056954f8baa83 (patch) | |
| tree | f2725d424c81f54aca65c93e84fe943261a212e2 /llvm/test/Transforms/CorrelatedValuePropagation/crash.ll | |
| parent | 15c85c916fafb454be24d30ed5a6cec18d0ea89c (diff) | |
| download | bcm5719-llvm-35609d97ae89b8e13f40f4e6b9b056954f8baa83.tar.gz bcm5719-llvm-35609d97ae89b8e13f40f4e6b9b056954f8baa83.zip | |
Fix PR8790, another instance where unreachable code can cause instruction simplification to fail,
this case involve a select that simplifies to itself.
llvm-svn: 121817
Diffstat (limited to 'llvm/test/Transforms/CorrelatedValuePropagation/crash.ll')
| -rw-r--r-- | llvm/test/Transforms/CorrelatedValuePropagation/crash.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/crash.ll b/llvm/test/Transforms/CorrelatedValuePropagation/crash.ll index 8636788511e..80c43d0f1da 100644 --- a/llvm/test/Transforms/CorrelatedValuePropagation/crash.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/crash.ll @@ -18,3 +18,20 @@ for.cond.us.us: ; preds = %for.cond.us.us for.end: ; preds = %for.cond.us, %for.cond.us.us, %entry ret void } + +; PR 8790 +define void @test2() nounwind ssp { +entry: + br label %func_29.exit + +sdf.exit.i: + %l_44.1.mux.i = select i1 %tobool5.not.i, i8 %l_44.1.mux.i, i8 1 + br label %srf.exit.i + +srf.exit.i: + %tobool5.not.i = icmp ne i8 undef, 0 + br i1 %tobool5.not.i, label %sdf.exit.i, label %func_29.exit + +func_29.exit: + ret void +} |

