[WebAssembly] Enable folding of offsets into global variable addresses.
authorDan Gohman <dan433584@gmail.com>
Sun, 6 Dec 2015 19:33:32 +0000 (19:33 +0000)
committerDan Gohman <dan433584@gmail.com>
Sun, 6 Dec 2015 19:33:32 +0000 (19:33 +0000)
commita4b710a74f737c4d9ec4d55ecce0f93d2a6229a2
tree311df54fd19037773dba601fecc8a808653fc87f
parent6ddce716cb8d0cd45f1604aae4f226a8c9f99f87
[WebAssembly] Enable folding of offsets into global variable addresses.

llvm-svn: 254882
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
llvm/test/CodeGen/WebAssembly/offset-folding.ll [new file with mode: 0644]