OSDN Git Service

[WebAssembly] Remove infinite loop from reg-stackify test
authorDerek Schuff <dschuff@google.com>
Wed, 16 Aug 2017 00:49:44 +0000 (00:49 +0000)
committerDerek Schuff <dschuff@google.com>
Wed, 16 Aug 2017 00:49:44 +0000 (00:49 +0000)
commit9689681e1bdb4cecda910e6ddc0029e387286431
tree17603b6111ebd19235bcc7264a6552014823255d
parent156a10346f9be4985bd8b6ceb6bfe9fd7c7a0941
[WebAssembly] Remove infinite loop from reg-stackify test

r310940 exposed reverse-unreachable code to some optimizers,
which caused some of the code in this test to be sunk, changing
the input to the pass and breaking the exptectations.

Since that change is irrelevant to this particular test, this change
just adds an exit node to work around the problem; the
test should really be more robust (or be an MIR test?) but this preserves
the existing test intent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310981 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/WebAssembly/reg-stackify.ll