[WebAssembly] Fix the CFG Stackifier to handle unoptimized branches
authorDan Gohman <dan433584@gmail.com>
Wed, 16 Dec 2015 19:06:41 +0000 (19:06 +0000)
committerDan Gohman <dan433584@gmail.com>
Wed, 16 Dec 2015 19:06:41 +0000 (19:06 +0000)
commitfd7b160a14d78a2fbf2ab8dbc08ceba9d4dc846d
treed978d68867788223f208c2abd13aec5bee2da9f6
parent50776d0d9ec9bc3c9d806858f36de9b4193ba399
[WebAssembly] Fix the CFG Stackifier to handle unoptimized branches

If a branch both branches to and falls through to the same block, treat it as
an explicit branch.

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