diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-09-16 16:51:30 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-09-16 16:51:30 +0000 |
commit | 950a13cfa371503281f91eecdaac6286aca274f7 (patch) | |
tree | 577bee2ca86d87c3386463e8f163bbeb30885c46 /llvm/test/CodeGen/WebAssembly/phi.ll | |
parent | b02a320f5e141339b16348107f33a2bd5f40ad4d (diff) | |
download | bcm5719-llvm-950a13cfa371503281f91eecdaac6286aca274f7.tar.gz bcm5719-llvm-950a13cfa371503281f91eecdaac6286aca274f7.zip |
[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
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/phi.ll')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/phi.ll | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/phi.ll b/llvm/test/CodeGen/WebAssembly/phi.ll index f06d9673de5..a4675fba711 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 @@ done: ; Swap phis. ; CHECK-LABEL: test1 -; CHECK: BB0_1: +; CHECK: BB1_1: ; CHECK: (setlocal [[REG0:@.*]] [[REG1:@.*]]) ; CHECK: (setlocal [[REG1]] [[REG2:@.*]]) ; CHECK: (setlocal [[REG2]] [[REG0]]) |