OSDN Git Service

[WebAssembly] Implement a new algorithm for placing BLOCK markers
authorDan Gohman <dan433584@gmail.com>
Mon, 14 Dec 2015 22:51:54 +0000 (22:51 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 14 Dec 2015 22:51:54 +0000 (22:51 +0000)
commit4fe3f079fbc7ada006da829034228e12ed0f7042
treeaa7328ba8757c2f9b8fe83cdafd25bf8aa503544
parent003f0f0bad2f0f769a221deebba3e6db69a7b842
[WebAssembly] Implement a new algorithm for placing BLOCK markers

Implement a new BLOCK scope placement algorithm which better handles
early-return blocks and early exists from nested scopes.

Differential Revision: http://reviews.llvm.org/D15368

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255564 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
test/CodeGen/WebAssembly/cfg-stackify.ll