diff options
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/switch_undef.ll')
-rw-r--r-- | llvm/test/Transforms/SimplifyCFG/switch_undef.ll | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/switch_undef.ll b/llvm/test/Transforms/SimplifyCFG/switch_undef.ll index 83d18c924dc..e5acf41644a 100644 --- a/llvm/test/Transforms/SimplifyCFG/switch_undef.ll +++ b/llvm/test/Transforms/SimplifyCFG/switch_undef.ll @@ -1,24 +1,17 @@ -; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt %s -keep-loops=false -switch-to-lookup=true -simplifycfg -S | FileCheck %s ; RUN: opt %s -passes='simplify-cfg<no-keep-loops;switch-to-lookup>' -S | FileCheck %s define void @f6() #0 { -; CHECK-LABEL: @f6( -; CHECK-NEXT: entry: -; CHECK-NEXT: br label [[FOR_COND_I:%.*]] -; CHECK: for.cond.i: -; CHECK-NEXT: [[TOBOOL7_I:%.*]] = icmp ne i16 1, 0 -; CHECK-NEXT: br label [[FOR_COND_I]] -; +; CHECK-LABEL: entry: entry: br label %for.cond.i for.cond.i: ; preds = %f1.exit.i, %entry switch i16 undef, label %f1.exit.i [ - i16 -1, label %cond.false.i3.i - i16 1, label %cond.false.i3.i - i16 0, label %cond.false.i3.i + i16 -1, label %cond.false.i3.i + i16 1, label %cond.false.i3.i + i16 0, label %cond.false.i3.i ] cond.false.i3.i: ; preds = %for.cond.i, %for.cond.i, %for.cond.i |