[WebAssembly] Check in an initial CFG Stackifier pass
This pass implements a simple algorithm for conversion from CFG to
wasm's structured control flow. It doesn't yet handle multiple-entry
loops; that will be added in a future patch.
It also adds initial support for switch statements.
Differential Revision: http://reviews.llvm.org/D12735
llvm-svn: 247818
diff --git a/llvm/test/CodeGen/WebAssembly/phi.ll b/llvm/test/CodeGen/WebAssembly/phi.ll
index f06d967..a4675fb 100644
--- a/llvm/test/CodeGen/WebAssembly/phi.ll
+++ b/llvm/test/CodeGen/WebAssembly/phi.ll
@@ -1,8 +1,5 @@
; RUN: llc < %s -asm-verbose=false | FileCheck %s
-; This test depends on branching support, which is not yet checked in.
-; XFAIL: *
-
; Test that phis are lowered.
target datalayout = "e-p:32:32-i64:64-n32:64-S128"
@@ -29,7 +26,7 @@
; Swap phis.
; CHECK-LABEL: test1
-; CHECK: BB0_1:
+; CHECK: BB1_1:
; CHECK: (setlocal [[REG0:@.*]] [[REG1:@.*]])
; CHECK: (setlocal [[REG1]] [[REG2:@.*]])
; CHECK: (setlocal [[REG2]] [[REG0]])