[PATCH] Compiler-rt changes to react to skiping promotable allocas.

Anna Zaks zaks.anna at gmail.com
Wed Feb 18 17:26:47 PST 2015


Hi kcc, samsonov,

This is the compiler-rt part of the following change: "Skip promotable allocas to improve performance at -O0" http://reviews.llvm.org/D7741.

http://reviews.llvm.org/D7742

Files:
  test/asan/TestCases/alloca_instruments_all_paddings.cc
  test/asan/TestCases/gc-test.cc

Index: test/asan/TestCases/alloca_instruments_all_paddings.cc
===================================================================
--- test/asan/TestCases/alloca_instruments_all_paddings.cc
+++ test/asan/TestCases/alloca_instruments_all_paddings.cc
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O0 -mllvm -asan-instrument-allocas %s -o %t
+// RUN: %clangxx_asan -O0 -mllvm -asan-instrument-allocas -mllvm -asan-skip-promotable-allocas=0 %s -o %t
 // RUN: %run %t 2>&1
 //
 
Index: test/asan/TestCases/gc-test.cc
===================================================================
--- test/asan/TestCases/gc-test.cc
+++ test/asan/TestCases/gc-test.cc
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan %s -pthread -o %t
+// RUN: %clangxx_asan -O0 -mllvm -asan-skip-promotable-allocas=0 %s -pthread -o %t
 // RUN: env ASAN_OPTIONS=detect_stack_use_after_return=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK1
 // RUN: env ASAN_OPTIONS=detect_stack_use_after_return=0 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK0
 // REQUIRES: stable-runtime

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7742.20241.patch
Type: text/x-patch
Size: 1029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150219/61b6c9fd/attachment.bin>


More information about the llvm-commits mailing list