1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 00:12:50 +01:00
llvm-mirror/test/Transforms/ConstantMerge
Rafael Espindola 41852873f7 Don't merge two constants if we care about the address of both.
This fixes the original testcase in PR8927. It also causes a clang
binary built with a patched clang to increase in size by 0.21%.

We can probably get some of the size back by writing a pass that
detects that a global never has its pointer compared and adds
unnamed_addr to it (maybe extend global opt). It is also possible that
there are some other cases clang could add unnamed_addr to.

I will investigate extending globalopt next.

llvm-svn: 123584
2011-01-16 17:05:09 +00:00
..
2002-09-23-CPR-Update.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2003-10-28-MergeExternalConstants.ll Eliminate uses of %prcontext. 2009-09-05 11:35:16 +00:00
2011-01-15-EitherOrder.ll Don't merge two constants if we care about the address of both. 2011-01-16 17:05:09 +00:00
dg.exp sabre brings to my attention that the 'tr' suffix is also obsolete 2008-05-20 21:00:03 +00:00
dont-merge.ll fix PR8144, a bug where constant merge would merge globals marked 2010-09-15 00:30:11 +00:00
merge-both.ll Don't merge two constants if we care about the address of both. 2011-01-16 17:05:09 +00:00
unnamed-addr.ll Don't merge two constants if we care about the address of both. 2011-01-16 17:05:09 +00:00