diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-16 17:05:09 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-16 17:05:09 +0000 |
| commit | 751677a0409ed782d44c4e98f14bf52479911c23 (patch) | |
| tree | 537879d2f123de511c78a797ec90793dc831fee7 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 811975d59e294ab619ec8905eaf6b879c1d280cb (diff) | |
| download | llvm-751677a0409ed782d44c4e98f14bf52479911c23.zip llvm-751677a0409ed782d44c4e98f14bf52479911c23.tar.gz llvm-751677a0409ed782d44c4e98f14bf52479911c23.tar.bz2 | |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
