Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Differential D39775 Diff 122017 llvm/test/Instrumentation/AddressSanitizer/debug_info_noninstrumented_alloca.ll
Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Instrumentation/AddressSanitizer/debug_info_noninstrumented_alloca.ll
; This test checks that non-instrumented allocas stay in the first basic block. | ; This test checks that non-instrumented allocas stay in the first basic block. | ||||
; Only first-basic-block allocas are considered stack slots, and moving them | ; Only first-basic-block allocas are considered stack slots, and moving them | ||||
; breaks debug info. | ; breaks debug info. | ||||
; RUN: opt < %s -asan -asan-module -S | FileCheck %s | ; RUN: %opt_asan < %s -asan -asan-module -S | FileCheck %s | ||||
; RUN: opt < %s -asan -asan-module -asan-instrument-dynamic-allocas -S | FileCheck %s | ; RUN: %opt_asan < %s -asan -asan-module -asan-instrument-dynamic-allocas -S | FileCheck %s | ||||
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" | target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" | ||||
target triple = "x86_64-apple-macosx10.10.0" | target triple = "x86_64-apple-macosx10.10.0" | ||||
define i32 @foo() sanitize_address { | define i32 @foo() sanitize_address { | ||||
entry: | entry: | ||||
; Won't be instrumented because of asan-skip-promotable-allocas. | ; Won't be instrumented because of asan-skip-promotable-allocas. | ||||
%non_instrumented1 = alloca i32, align 4 | %non_instrumented1 = alloca i32, align 4 | ||||
Show All 26 Lines |