[asan] Skip promotable allocas to improve performance at -O0
[oota-llvm.git] / test / Instrumentation / AddressSanitizer / stack_dynamic_alloca.ll
index 43711b7a1f272c4dc94531781f60be881aa2d265..a738f72843ce1517ec8b45626ace51b350b3a765 100644 (file)
@@ -26,6 +26,8 @@ entry:
 ; CHECK: ret void
 
   %XXX = alloca [20 x i8], align 1
+  %arr.ptr = bitcast [20 x i8]* %XXX to i8*
+  store volatile i8 0, i8* %arr.ptr
   ret void
 }
 
@@ -37,6 +39,8 @@ entry:
 ; CHECK: ret void
 
   %XXX = alloca [20 x i8], align 1
+  %arr.ptr = bitcast [20 x i8]* %XXX to i8*
+  store volatile i8 0, i8* %arr.ptr
   call void asm sideeffect "mov %%rbx, %%rcx", "~{dirflag},~{fpsr},~{flags}"() nounwind
   ret void
 }