[PATCH] D24053: [WebAssembly] Disable folding of GA+reg into load/store constant offsets

Derek Schuff via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 30 13:29:54 PDT 2016


dschuff created this revision.
dschuff added a reviewer: sunfish.
dschuff added a subscriber: llvm-commits.
Herald added subscribers: dschuff, jfb.

If the register has a negative value then unsigned overflow will occur;
this case is sometimes even created intentionally by LSR. For now
disable GA+reg folding. Fixes PR29127

https://reviews.llvm.org/D24053

Files:
  lib/Target/WebAssembly/WebAssemblyInstrMemory.td
  test/CodeGen/WebAssembly/address-offsets.ll
  test/CodeGen/WebAssembly/negative-base-reg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24053.69746.patch
Type: text/x-patch
Size: 12085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160830/1a410571/attachment.bin>


More information about the llvm-commits mailing list