OSDN Git Service

[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)
commitc3f6be53504b0811cae69f0df19b5fc101e34d31
tree361db03c561eed76675837fc2a7f857eac1a7134
parent6bfc13d2f5f2346de875af2a9f57c3801ac3d3a5
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328049 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
test/CodeGen/WebAssembly/tls.ll [new file with mode: 0644]