diff options
author | Derek Schuff <dschuff@google.com> | 2017-08-16 00:49:44 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2017-08-16 00:49:44 +0000 |
commit | 9689681e1bdb4cecda910e6ddc0029e387286431 (patch) | |
tree | 17603b6111ebd19235bcc7264a6552014823255d /test/CodeGen/WebAssembly | |
parent | 156a10346f9be4985bd8b6ceb6bfe9fd7c7a0941 (diff) |
[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
Diffstat (limited to 'test/CodeGen/WebAssembly')
-rw-r--r-- | test/CodeGen/WebAssembly/reg-stackify.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/WebAssembly/reg-stackify.ll b/test/CodeGen/WebAssembly/reg-stackify.ll index ebda5373c60..c6602d81d4b 100644 --- a/test/CodeGen/WebAssembly/reg-stackify.ll +++ b/test/CodeGen/WebAssembly/reg-stackify.ll @@ -357,7 +357,9 @@ bb17: ; preds = %bb13, %bb8 bb21: ; preds = %bb17, %bb5 %tmp22 = phi double [ %tmp, %bb5 ], [ %tmp9, %bb17 ] %tmp23 = fadd double %tmp6, 1.000000e+00 - br label %bb5 + br i1 %arg4, label %exit, label %bb5 +exit: + ret void } ; Don't move calls past loads |