[WebAssembly] Don't use set_local instructions explicitly.
authorDan Gohman <dan433584@gmail.com>
Mon, 23 Nov 2015 19:30:43 +0000 (19:30 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 23 Nov 2015 19:30:43 +0000 (19:30 +0000)
commitc558dd39be692e8355a719e1b6f922ce79787e3c
tree0c618a75a0c2396d8f27eaf088b27e1a561645bd
parent846661215edff55c46f0c3fad192289936e16e41
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
lib/Target/WebAssembly/WebAssemblyInstrInfo.td
test/CodeGen/WebAssembly/phi.ll