[PATCH] D12393: WebAssembly: generate global loads
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 07:43:03 PDT 2015
sunfishcode added a subscriber: sunfishcode.
sunfishcode added a comment.
I would like to propose a different approach to global variables.
We should start by allocating all global variables inside the address space, using a plain old data section. This will be easy to do, it's what LLVM normally does, it'll support all global variables, and it's something we'll need to do anyway. And, it'll be easier to do if we don't have to contend with special-case tglobaladdr patterns up front.
Once that's done, we can talk about how best to optimize non-address-taken globals.
http://reviews.llvm.org/D12393
More information about the llvm-commits
mailing list