[GlobalOpt] Don't look through aliases when sorting names of globals.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 15 Mar 2016 14:18:26 +0000 (14:18 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 15 Mar 2016 14:18:26 +0000 (14:18 +0000)
commit96f4b128800cc567a4355025963ea64caa750904
treef9d9436f17ed98c292e9c845cde763fe8fa6ac5d
parentca1d1fb2d6e42c805a92cf630a8eabc9739c0964
[GlobalOpt] Don't look through aliases when sorting names of globals.

If both are different aliases to the same value the sorting becomes
non-deterministic as array_pod_sort is not stable.

llvm-svn: 263550
llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/test/Transforms/GlobalOpt/alias-used.ll