1 ; Make sure we don't break the IR when moving non-instrumented allocas
3 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
4 ; RUN: opt < %s -asan -asan-module -asan-instrument-dynamic-allocas -S | FileCheck %s
6 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
7 target triple = "x86_64-apple-macosx10.10.0"
9 define i32 @foo() sanitize_address {
11 %non_instrumented1 = alloca i32, align 4
12 %t = load i32, i32* %non_instrumented1, align 4
13 %instrumented = alloca i32, align 4
14 %ptr = ptrtoint i32* %instrumented to i32
19 ; CHECK: %non_instrumented1 = alloca i32, align 4
20 ; CHECK: load i32, i32* %non_instrumented1
21 ; CHECK: load i32, i32* @__asan_option_detect_stack_use_after_return