SelectionDAG switch lowering: Replace unreachable default with most popular case.
[oota-llvm.git] / test / CodeGen / X86 / asm-label.ll
index 1fc6e2eaf2b73364df674c4e7ad928c110759a7f..1da66e74d34f5055db61a803706644ff31dc72ba 100644 (file)
@@ -24,7 +24,7 @@ if.end:                                           ; preds = %if.then
   br label %cleanup
 
 cleanup:                                          ; preds = %if.end, %if.then9
-  switch i32 undef, label %unreachable [
+  switch i32 undef, label %default [
     i32 0, label %cleanup.cont
     i32 1, label %if.end11
   ]
@@ -35,6 +35,6 @@ cleanup.cont:                                     ; preds = %cleanup
 if.end11:                                         ; preds = %cleanup.cont, %cleanup, %land.lhs.true, %entry
   ret void
 
-unreachable:                                      ; preds = %cleanup
-  unreachable
+default:                                          ; preds = %cleanup
+  br label %if.end11
 }