[PATCH] D15197: [WebAssembly] Support constant offsets on loads and stores

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 4 03:14:25 PST 2015


sunfish added a comment.

> We'll also want to optimize things so that LLVM knows to generate positive offsets instead of negative ones (post-increment as much as possible). Do you know if there's a knob for that? It's just an optimization so maybe just mention it in the list of work to do in the README?


The main hook we can use is WebAssemblyTargetLowering::isLegalAddressingMode, and there's a TODO for it in WebAssemblyInstrMemory.md.


http://reviews.llvm.org/D15197





More information about the llvm-commits mailing list