]> granicus.if.org Git - llvm/commit
[GlobalMerge] Don't merge globals that may be preempted
authorJohn Brawn <john.brawn@arm.com>
Fri, 2 Jun 2017 10:24:14 +0000 (10:24 +0000)
committerJohn Brawn <john.brawn@arm.com>
Fri, 2 Jun 2017 10:24:14 +0000 (10:24 +0000)
commit0f1cadd92008a2671cae9b8ef0890007dc923f39
tree56083d0818d0c3990ae83f810947e0a8f1246952
parent899f9e9ab67a90feb86473064f17d396d0409f94
[GlobalMerge] Don't merge globals that may be preempted

When a global may be preempted it needs to be accessed directly, instead of
indirectly through a MergedGlobals symbol, for the preemption to work.

This fixes PR33136.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304537 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalMerge.cpp
test/CodeGen/ARM/global-merge-external.ll