[all-commits] [llvm/llvm-project] eaa71a: [clang] Add optional pass to remove UBSAN traps us...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Mon Mar 11 12:07:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eaa71a97f9155ea9df33141ef2fb369dc8fc464f
      https://github.com/llvm/llvm-project/commit/eaa71a97f9155ea9df33141ef2fb369dc8fc464f
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    A clang/test/CodeGen/remote-traps.c

  Log Message:
  -----------
  [clang] Add optional pass to remove UBSAN traps using PGO (#84214)

With #83471 it reduces UBSAN overhead from 44% to 6%.
Measured as "Geomean difference" on "test-suite/MultiSource/Benchmarks"
with PGO build.

On real large server binary we see 95% of code is still instrumented,
with 10% -> 1.5% UBSAN overhead improvements. We can pass this test only
with subset of UBSAN, so base overhead is smaller.

We have followup patches to improve it even further.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list