summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/reg-stackify.ll
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2017-08-16 00:49:44 +0000
committerDerek Schuff <dschuff@google.com>2017-08-16 00:49:44 +0000
commit8e7135956111e846035f4e5c988141fb836d76a0 (patch)
tree7a323773ca582e41cc4b8deaaba3fc21d3ce7748 /llvm/test/CodeGen/WebAssembly/reg-stackify.ll
parent8fb57125b0653b23e397559ef665c9ed6dad4259 (diff)
downloadbcm5719-llvm-8e7135956111e846035f4e5c988141fb836d76a0.tar.gz
bcm5719-llvm-8e7135956111e846035f4e5c988141fb836d76a0.zip
[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. llvm-svn: 310981
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/reg-stackify.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/reg-stackify.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/reg-stackify.ll b/llvm/test/CodeGen/WebAssembly/reg-stackify.ll
index ebda5373c60..c6602d81d4b 100644
--- a/llvm/test/CodeGen/WebAssembly/reg-stackify.ll
+++ b/llvm/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
OpenPOWER on IntegriCloud