Changes

Summary

  1. [asan] Remove confusing workaround (details)
  2. [Bazel] Remove old macho lld port (details)
  3. [sanitizer] Start background thread once (details)
  4. [compiler-rt] Fix incorrect variable names used (details)
  5. [NFC][sanitizer] Use more bytes of sanitizer_stack_store_test pointers (details)
  6. Reapply "OpenMP: Start calling setTargetAttributes for generated kernels" (details)
  7. [ELF] Hint -z nostart-stop-gc for __start_ undefined references (details)
  8. [gn build] (manually) port 9e3552523ebd (no more old mach-o lld) (details)
  9. profi - a flow-based profile inference algorithm: Part III (out of 3) (details)
  10. [libc++][NFC] Update namespace comments in include/ (details)
Commit 67207797e95bbf119199ef95b9eb4c9877a09152 by Vitaly Buka
[asan] Remove confusing workaround

The goal is to identify the bot and try to fix it.

SetSoftRssLimitExceededCallback is AsanInitInternal as I assume
that only MaybeStartBackgroudThread needs to be delayed to constructors.
Later I want to move MaybeStartBackgroudThread call into sanitizer_common.

If it needs to be reverted please provide to more info, like bot, or details about setup.

Reviewed By: kstoimenov

Differential Revision: https://reviews.llvm.org/D114934
The file was modifiedcompiler-rt/lib/asan/asan_rtl.cpp
Commit be4e789d214f071eaabd95fcf4888f6b9892062f by keithbsmiley
[Bazel] Remove old macho lld port

This code and cmake was removed in https://reviews.llvm.org/D114842

Differential Revision: https://reviews.llvm.org/D114976
The file was modifiedutils/bazel/llvm-project-overlay/lld/BUILD.bazel
Commit 25feff4b2e815aeda777368625fb75e52a77753a by Vitaly Buka
[sanitizer] Start background thread once

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D114933
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp
Commit 534d105e0334e6b468da6cad746abdb2d2fd3167 by leonardchan
[compiler-rt] Fix incorrect variable names used
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp
Commit 655c0bfe2cb40a3e628e319dd90c35ef722d18ba by Vitaly Buka
[NFC][sanitizer] Use more bytes of sanitizer_stack_store_test pointers
The file was modifiedcompiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp
Commit 2f0a5714184cca9325004506a22a2a3193c825aa by Matthew.Arsenault
Reapply "OpenMP: Start calling setTargetAttributes for generated kernels"

This reverts commit 25eb7fa01d7ebbe67648ea03841cda55b4239ab2.

Previous buildbot failures appear to have been a fluke from a dirty
build.
The file was modifiedclang/lib/CodeGen/TargetInfo.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was addedclang/test/OpenMP/amdgcn-attributes.cpp
Commit 353fe72ca3d77f4bbe53132577a88424def172e8 by i
[ELF] Hint -z nostart-stop-gc for __start_ undefined references

Make users aware what to do with ld.lld 13.0.0 / GNU ld<2015-10 --gc-sections
behavior.

Differential Revision: https://reviews.llvm.org/D114830
The file was addedlld/docs/ELF/start-stop-gc.rst
The file was modifiedlld/docs/index.rst
The file was modifiedlld/ELF/Relocations.cpp
The file was addedlld/test/ELF/gc-sections-startstop-hint.s
Commit b87fe58dce17c37a56eae4f2c1af4eeb41a490a4 by thakis
[gn build] (manually) port 9e3552523ebd (no more old mach-o lld)
The file was removedllvm/utils/gn/secondary/lld/lib/ReaderWriter/YAML/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
The file was removedllvm/utils/gn/secondary/lld/lib/ReaderWriter/BUILD.gn
The file was removedllvm/utils/gn/secondary/lld/lib/ReaderWriter/MachO/BUILD.gn
The file was removedllvm/utils/gn/secondary/lld/unittests/MachOTests/BUILD.gn
The file was removedllvm/utils/gn/secondary/lld/lib/Driver/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/lld/test/BUILD.gn
The file was removedllvm/utils/gn/secondary/lld/unittests/BUILD.gn
The file was removedllvm/utils/gn/secondary/lld/unittests/DriverTests/BUILD.gn
The file was removedllvm/utils/gn/secondary/lld/lib/Core/BUILD.gn
Commit 93a2c2919f7339bd9e942ef69ebbf0883a2ef727 by hoy
profi - a flow-based profile inference algorithm: Part III (out of 3)

This is a continuation of D109860 and D109903.

An important challenge for profile inference is caused by the fact that the
sample profile is collected on a fully optimized binary, while the block and
edge frequencies are consumed on an early stage of the compilation that operates
with a non-optimized IR. As a result, some of the basic blocks may not have
associated sample counts, and it is up to the algorithm to deduce missing
frequencies. The problem is illustrated in the figure where three basic
blocks are not present in the optimized binary and hence, receive no samples
during profiling.

We found that it is beneficial to treat all such blocks equally. Otherwise the
compiler may decide that some blocks are “cold” and apply undesirable
optimizations (e.g., hot-cold splitting) regressing the performance. Therefore,
we want to distribute the counts evenly along the blocks with missing samples.
This is achieved by a post-processing step that identifies "dangling" subgraphs
consisting of basic blocks with no sampled counts; once the subgraphs are
found, we rebalance the flow so as every branch probability is 50:50 within the
subgraphs.

Our experiments indicate up to 1% performance win using the optimization on
some binaries and a significant improvement in the quality of profile counts
(when compared to ground-truth instrumentation-based counts)

{F19093045}

Reviewed By: hoy

Differential Revision: https://reviews.llvm.org/D109980
The file was modifiedllvm/lib/Transforms/Utils/SampleProfileInference.cpp
The file was addedllvm/test/Transforms/SampleProfile/Inputs/profile-inference-noprobes.prof
The file was addedllvm/test/Transforms/SampleProfile/profile-inference-rebalance.ll
The file was modifiedllvm/test/Transforms/SampleProfile/profile-inference.ll
The file was addedllvm/test/Transforms/SampleProfile/profile-inference-noprobes.ll
The file was addedllvm/test/Transforms/SampleProfile/Inputs/profile-inference-rebalance.prof
Commit d2b0df35afb7184f5a68f67d6ed0c6230688df7f by nikolasklauser
[libc++][NFC] Update namespace comments in include/

update the namspace comments in include/

Reviewed By: ldionne, #libc

Spies: smeenai, libcxx-commits

Differential Revision: https://reviews.llvm.org/D114947
The file was modifiedlibcxx/include/string
The file was modifiedlibcxx/include/__functional/bind.h
The file was modifiedlibcxx/include/ext/hash_map
The file was modifiedlibcxx/include/optional
The file was modifiedlibcxx/include/thread
The file was modifiedlibcxx/include/tuple
The file was modifiedlibcxx/include/__functional/function.h
The file was modifiedlibcxx/include/typeinfo
The file was modifiedlibcxx/include/regex
The file was modifiedlibcxx/include/charconv
The file was modifiedlibcxx/include/exception
The file was modifiedlibcxx/include/string_view
The file was modifiedlibcxx/include/__utility/rel_ops.h
The file was modifiedlibcxx/include/type_traits
The file was modifiedlibcxx/include/__threading_support
The file was modifiedlibcxx/include/chrono
The file was modifiedlibcxx/include/__nullptr
The file was modifiedlibcxx/include/initializer_list
The file was modifiedlibcxx/include/complex
The file was modifiedlibcxx/include/ext/__hash
The file was modifiedlibcxx/include/ext/hash_set
The file was modifiedlibcxx/include/new
The file was modifiedlibcxx/include/stdexcept