Progress:
Changes

Summary

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

Seems better to rely on the existing formatting, makes the output
smaller/simpler - this is consistent with libstdc++'s std::string_view
pretty printing too.

Differential Revision: https://reviews.llvm.org/D113244
The file was modifiedlibcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp (diff)
The file was modifiedlibcxx/utils/gdb/libcxx/printers.py (diff)
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 (diff)
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 (diff)
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 (diff)
Commit 534d105e0334e6b468da6cad746abdb2d2fd3167 by leonardchan
[compiler-rt] Fix incorrect variable names used
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp (diff)
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 (diff)
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 addedclang/test/OpenMP/amdgcn-attributes.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp (diff)
The file was modifiedclang/lib/CodeGen/TargetInfo.cpp (diff)
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 modifiedlld/ELF/Relocations.cpp (diff)
The file was addedlld/docs/ELF/start-stop-gc.rst
The file was modifiedlld/docs/index.rst (diff)
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 removedllvm/utils/gn/secondary/lld/lib/Core/BUILD.gn
The file was removedllvm/utils/gn/secondary/lld/lib/ReaderWriter/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/lld/tools/lld/BUILD.gn (diff)
The file was modifiedllvm/utils/gn/secondary/lld/test/BUILD.gn (diff)
The file was removedllvm/utils/gn/secondary/lld/unittests/DriverTests/BUILD.gn
The file was removedllvm/utils/gn/secondary/lld/unittests/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
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/test/Transforms/SampleProfile/profile-inference.ll (diff)
The file was modifiedllvm/lib/Transforms/Utils/SampleProfileInference.cpp (diff)
The file was addedllvm/test/Transforms/SampleProfile/Inputs/profile-inference-noprobes.prof
The file was addedllvm/test/Transforms/SampleProfile/Inputs/profile-inference-rebalance.prof
The file was addedllvm/test/Transforms/SampleProfile/profile-inference-noprobes.ll
The file was addedllvm/test/Transforms/SampleProfile/profile-inference-rebalance.ll
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/thread (diff)
The file was modifiedlibcxx/include/new (diff)
The file was modifiedlibcxx/include/charconv (diff)
The file was modifiedlibcxx/include/exception (diff)
The file was modifiedlibcxx/include/ext/hash_set (diff)
The file was modifiedlibcxx/include/complex (diff)
The file was modifiedlibcxx/include/__utility/rel_ops.h (diff)
The file was modifiedlibcxx/include/regex (diff)
The file was modifiedlibcxx/include/ext/__hash (diff)
The file was modifiedlibcxx/include/typeinfo (diff)
The file was modifiedlibcxx/include/__nullptr (diff)
The file was modifiedlibcxx/include/__threading_support (diff)
The file was modifiedlibcxx/include/string_view (diff)
The file was modifiedlibcxx/include/stdexcept (diff)
The file was modifiedlibcxx/include/__functional/bind.h (diff)
The file was modifiedlibcxx/include/ext/hash_map (diff)
The file was modifiedlibcxx/include/initializer_list (diff)
The file was modifiedlibcxx/include/chrono (diff)
The file was modifiedlibcxx/include/__functional/function.h (diff)
The file was modifiedlibcxx/include/optional (diff)
The file was modifiedlibcxx/include/tuple (diff)
The file was modifiedlibcxx/include/string (diff)
The file was modifiedlibcxx/include/type_traits (diff)