[WebAssembly] Don't perform the returned-argument optimization on constants.
authorDan Gohman <dan433584@gmail.com>
Sat, 5 Dec 2015 22:12:39 +0000 (22:12 +0000)
committerDan Gohman <dan433584@gmail.com>
Sat, 5 Dec 2015 22:12:39 +0000 (22:12 +0000)
commit9eb92586b28e7d951f0ac320045885a320f2a0ab
tree54932063d86ac253e56790e8437006844cfae59c
parent39f84fda2f1b44f926a313e138721d4b14d00da7
[WebAssembly] Don't perform the returned-argument optimization on constants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254866 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyOptimizeReturned.cpp
test/CodeGen/WebAssembly/returned.ll