summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/cfg-stackify.ll
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-01-06 18:29:35 +0000
committerDan Gohman <dan433584@gmail.com>2016-01-06 18:29:35 +0000
commit8f59cf756f3903586b7ab549b0ab3c377cffe33d (patch)
tree564854f105d1d799a938f0493904a3ed18200921 /llvm/test/CodeGen/WebAssembly/cfg-stackify.ll
parenteac06368053bd1e7082b5ab7efcd6f9c7014d589 (diff)
downloadbcm5719-llvm-8f59cf756f3903586b7ab549b0ab3c377cffe33d.tar.gz
bcm5719-llvm-8f59cf756f3903586b7ab549b0ab3c377cffe33d.zip
[WebAssembly] Don't use range-based loop for a list that's being modified
The first instruction in a block is what the rend() iterator points to, so if it moves, we need to re-evaluate rend() so that we continue to iterate through the rest of the instructions. llvm-svn: 256953
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/cfg-stackify.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/cfg-stackify.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/cfg-stackify.ll b/llvm/test/CodeGen/WebAssembly/cfg-stackify.ll
index 71f3551347b..d0250dc29e0 100644
--- a/llvm/test/CodeGen/WebAssembly/cfg-stackify.ll
+++ b/llvm/test/CodeGen/WebAssembly/cfg-stackify.ll
@@ -93,6 +93,7 @@ back:
; Test that a simple loop is handled as expected.
; CHECK-LABEL: test2:
+; CHECK-NOT: local
; CHECK: block BB2_2{{$}}
; CHECK: br_if {{[^,]*}}, BB2_2{{$}}
; CHECK: BB2_1:
OpenPOWER on IntegriCloud