[WebAssembly] Strip threadlocal attribute from globals in single thread mode
authorDerek Schuff <dschuff@google.com>
Tue, 20 Mar 2018 22:01:32 +0000 (22:01 +0000)
committerDerek Schuff <dschuff@google.com>
Tue, 20 Mar 2018 22:01:32 +0000 (22:01 +0000)
commit39b5367cba5d706ece4091cb33e850b68486b53a
tree240c607188f3726a15877299e1bef4a8dd501390
parente28ff4d43fb2f48f0c679a2305ea50aef1e8a456
[WebAssembly] Strip threadlocal attribute from globals in single thread mode

The default thread model for wasm is single, and in this mode thread-local
global variables can be lowered identically to non-thread-local variables.

Differential Revision: https://reviews.llvm.org/D44703

llvm-svn: 328049
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
llvm/test/CodeGen/WebAssembly/tls.ll [new file with mode: 0644]