Go to file
Rui Ueyama 1c837b5fb1 [ICF] Ignore SHF_GROUP flag when comparing two sections.
SHF_GROUP bit doesn't make sense in executables or DSOs, so linkers are
expected to remove that bit from section flags. We did that when we create
output sections.

This patch is to do that earlier than before. Now the flag is dropped when
we instantiate input section objects.

This change improves ICF. Previously, two sections that differ only in
SHF_GROUP flag were not merged, because when the control reached ICF,
the flag was still there. Now the flag is dropped before reaching to ICF,
so the difference is ignored naturally.

This issue was found by pcc.

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

llvm-svn: 305134
2017-06-10 00:38:55 +00:00
clang Revert r305110 to fix buildbot 2017-06-09 23:03:40 +00:00
clang-tools-extra [clang-tidy] D33930: Do not pick up by default the LLVM style if passing -format. 2017-06-09 22:23:03 +00:00
compiler-rt Mark a sancov test as unsupported on x86_64h-darwin 2017-06-10 00:12:11 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc generic: add missing get_work_dim include 2017-06-02 15:58:35 +00:00
libcxx [libcxx] [test] Update locale names for Windows. 2017-06-08 18:22:03 +00:00
libcxxabi [libcxxabi] HandleLLVMOptions in out of tree build 2017-06-03 17:23:19 +00:00
libunwind [libunwind] Fix executable stack directive on Linux. 2017-05-16 20:18:57 +00:00
lld [ICF] Ignore SHF_GROUP flag when comparing two sections. 2017-06-10 00:38:55 +00:00
lldb [VMRange] Remove unused FindRangeIndexThatContainsValue(). 2017-06-09 21:01:55 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [InstSimplify] Don't constant fold or DCE calls that are marked nobuiltin 2017-06-09 23:18:11 +00:00
openmp [OpenMP] Prevent unused-variable warning in libomptarget when compiling in Release mode. 2017-06-09 16:46:07 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [Polly] [ScopDetection] Allow passing multiple functions to `-polly-only-func`. 2017-06-09 08:23:40 +00:00