[WebAssembly] Don't old negative load/store offsets in fast-isel.
authorDan Gohman <dan433584@gmail.com>
Thu, 22 Dec 2016 15:15:10 +0000 (15:15 +0000)
committerDan Gohman <dan433584@gmail.com>
Thu, 22 Dec 2016 15:15:10 +0000 (15:15 +0000)
commit728926ac59a8988468cb74181083f32c7f6951ed
tree2b836fbb3432b48194c263d86c84589b1490b135
parent0e0a8b4d85691d23777af21db48e2358bdcf5e79
[WebAssembly] Don't old negative load/store offsets in fast-isel.

WebAssembly's load/store offsets are unsigned and don't wrap, so it's not
valid to fold in a negative offset.

llvm-svn: 290342
llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
llvm/test/CodeGen/WebAssembly/fast-isel.ll