[GlobalMerge] Handle llvm.compiler.used correctly.
authorEli Friedman <efriedma@codeaurora.org>
Wed, 25 Jul 2018 22:03:35 +0000 (22:03 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Wed, 25 Jul 2018 22:03:35 +0000 (22:03 +0000)
commitd6baff65f743816f121fc9cea3564d5ecea22a86
tree0d282c40c168b338d7e448a0ceddc70f1acc2204
parent5a0a83daaf6b5c22decee929a7cbb2af68937d50
[GlobalMerge] Handle llvm.compiler.used correctly.

Reuse the handling for llvm.used, and don't transform such globals.

Fixes a failure on the asan buildbot caused by my previous commit.

llvm-svn: 337973
llvm/lib/CodeGen/GlobalMerge.cpp
llvm/test/Transforms/GlobalMerge/used.ll [new file with mode: 0644]