summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/phi.ll
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-23 19:30:43 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-23 19:30:43 +0000
commitaa0a4bd05b4e99b6f749112604bb942d42988814 (patch)
treec57861e9d550298d358fb0a0523b14f111c2e387 /llvm/test/CodeGen/WebAssembly/phi.ll
parent941ad901462adf558966847041f79cd7af70ebf8 (diff)
downloadbcm5719-llvm-aa0a4bd05b4e99b6f749112604bb942d42988814.tar.gz
bcm5719-llvm-aa0a4bd05b4e99b6f749112604bb942d42988814.zip
[WebAssembly] Don't use set_local instructions explicitly.
The current approach to using get_local and set_local is to use them implicitly, as register uses and defs. Introduce new copy instructions which are themselves no-ops except for the get_local and set_local that they imply, so that we use get_local and set_local consistently. llvm-svn: 253905
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/phi.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/phi.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/phi.ll b/llvm/test/CodeGen/WebAssembly/phi.ll
index 8db0958c30f..13ce6da8244 100644
--- a/llvm/test/CodeGen/WebAssembly/phi.ll
+++ b/llvm/test/CodeGen/WebAssembly/phi.ll
@@ -26,9 +26,9 @@ done:
; CHECK-LABEL: test1:
; CHECK: BB1_1:
-; CHECK: set_local $[[NUM0:[0-9]+]], $[[NUM1:[0-9]+]]{{$}}
-; CHECK: set_local $[[NUM1]], $[[NUM2:[0-9]+]]{{$}}
-; CHECK: set_local $[[NUM2]], $[[NUM0]]{{$}}
+; CHECK: copy_local $[[NUM0:[0-9]+]], $[[NUM1:[0-9]+]]{{$}}
+; CHECK: copy_local $[[NUM1]], $[[NUM2:[0-9]+]]{{$}}
+; CHECK: copy_local $[[NUM2]], $[[NUM0]]{{$}}
define i32 @test1(i32 %n) {
entry:
br label %loop
OpenPOWER on IntegriCloud