mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
a37a807453
It's only useful to asan-itize profiling globals while debugging llvm's profiling instrumentation passes. Enabling asan along with instrprof or gcov instrumentation shouldn't incur extra overhead. This patch is in the same spirit as r264805 and r273202, which disabled tsan instrumentation of instrprof/gcov globals. Differential Revision: http://reviews.llvm.org/D21541 llvm-svn: 273444
10 lines
417 B
LLVM
10 lines
417 B
LLVM
; This test checks that we don't instrument globals created by profiling passes.
|
|
; RUN: opt < %s -asan -asan-module -S | FileCheck %s
|
|
|
|
@__profc_test = private global [1 x i64] zeroinitializer, section "__DATA,__llvm_prf_cnts", align 8
|
|
@__llvm_gcov_ctr = internal global [1 x i64] zeroinitializer
|
|
|
|
; CHECK-DAG: @asan.module_ctor
|
|
; CHECK-NOT: @__asan_gen{{.*}}__llvm_gcov_ctr
|
|
; CHECK-NOT: @__asan_gen{{.*}}__profc_test
|