[all-commits] [llvm/llvm-project] 8560c2: [ThinLTO, NewPM] Run OptimizerLastEPCallbacks from...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Feb 23 22:15:08 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8560c2d4268c32fb57a99993ffeb99b3745e0999
      https://github.com/llvm/llvm-project/commit/8560c2d4268c32fb57a99993ffeb99b3745e0999
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/test/Driver/asan.c
    M clang/test/Driver/dfsan.c
    M clang/test/Driver/msan.c
    M clang/test/Driver/sancov.c
    M clang/test/Driver/tsan.c
    M llvm/lib/Passes/PassBuilder.cpp

  Log Message:
  -----------
  [ThinLTO, NewPM] Run OptimizerLastEPCallbacks from buildThinLTOPreLinkDefaultPipeline

-O1 and above do dont call real optimizer pipeline in ThinLTO PreLink.
Also clang can't add PostLink OptimizerLastEPCallbacks for in-process ThinLTO.
This results in missing sanitizer passes with ThinLTO.

Simple working solution is just call OptimizerLastEPCallbacks
at the end of buildThinLTOPreLinkDefaultPipeline.

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


  Commit: bc897bad66170e7db845373695b0a09c554bbd4b
      https://github.com/llvm/llvm-project/commit/bc897bad66170e7db845373695b0a09c554bbd4b
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M compiler-rt/lib/asan/asan_poisoning.cpp

  Log Message:
  -----------
  [asan] Increase CHECK limit in __sanitizer_annotate_contiguous_container

Asan allocator already support up to (1 << 40) bytes allocations.


Compare: https://github.com/llvm/llvm-project/compare/053dc95839b3...bc897bad6617


More information about the All-commits mailing list