[WebAssembly] Fix uses of FrameIndex as store values
authorDerek Schuff <dschuff@google.com>
Sat, 30 Jan 2016 21:43:08 +0000 (21:43 +0000)
committerDerek Schuff <dschuff@google.com>
Sat, 30 Jan 2016 21:43:08 +0000 (21:43 +0000)
commitc97ba939d15c4d6dc371e9ccf7cd88d1e8c32768
treee30cf0c1eb14d7eb1eedca87029e0f21393ab611
parentfbc89d21dd7c878d5238d90eafd597aff46f33e0
[WebAssembly] Fix uses of FrameIndex as store values

Previously the code assumed all uses of FI on loads and stores were as
addresses. This checks whether the use is the address or a value and
handles the latter case as it does for non-memory instructions.

llvm-svn: 259306
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
llvm/lib/Target/WebAssembly/WebAssemblyRegisterInfo.cpp
llvm/test/CodeGen/WebAssembly/userstack.ll