llvm-project/llvm/lib/LTO
Teresa Johnson e2e621a36c [LTO] Don't create a new common unless merged has different size
Summary:
This addresses a regression in common handling from the new LTO
API in r278338. Only create a new common if the size is different.
The type comparison against an array type fails when the size is
different but not an array. GlobalMerge does not handle the
array types as well and we lose some global merging opportunities.

Reviewers: mehdi_amini

Subscribers: junbuml, llvm-commits, mehdi_amini

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

llvm-svn: 279911
2016-08-27 04:41:22 +00:00
..
CMakeLists.txt [ThinLTO] Add caching to the new LTO API 2016-08-23 21:30:12 +00:00
Caching.cpp [ThinLTO] Move loading of cache entry to client 2016-08-26 23:29:14 +00:00
LLVMBuild.txt Restore "Resolution-based LTO API." 2016-08-11 14:58:12 +00:00
LTO.cpp [LTO] Don't create a new common unless merged has different size 2016-08-27 04:41:22 +00:00
LTOBackend.cpp [ThinLTO] Add caching to the new LTO API 2016-08-23 21:30:12 +00:00
LTOCodeGenerator.cpp [lib/LTO] Add an assertion to catch invalid opt levels. 2016-08-26 15:22:59 +00:00
LTOModule.cpp Move legacy LTO interface headers to legacy/ directory. 2016-07-14 21:21:16 +00:00
ThinLTOCodeGenerator.cpp [PM] Rework the new PM support for building the ModuleSummaryIndex to 2016-08-19 07:49:19 +00:00
UpdateCompilerUsed.cpp Move legacy LTO interface headers to legacy/ directory. 2016-07-14 21:21:16 +00:00