[WebAssembly] Refine block placement to insert blocks between trees.
authorDan Gohman <dan433584@gmail.com>
Sat, 30 Jan 2016 05:01:06 +0000 (05:01 +0000)
committerDan Gohman <dan433584@gmail.com>
Sat, 30 Jan 2016 05:01:06 +0000 (05:01 +0000)
commited0f1138857e8c90b18206686828453a56c3a76e
tree4b9d5756e7ec6134f98836aacf0eef3119119350
parent43976df0dabbd2510ffcf0a8ef92c01815623c23
[WebAssembly] Refine block placement to insert blocks between trees.

Refine the test for whether an instruction is in an expression tree so that
it detects when one tree ends and another begins, so we can place a block
at that point, rather than continuing to find the first instruction not in
a tree at all.

llvm-svn: 259294
llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
llvm/test/CodeGen/WebAssembly/cfg-stackify.ll