[compiler-rt] r311189 - [TSan] Update test values

Vlad Tsyrklevich via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 18 12:22:39 PDT 2017


Author: vlad.tsyrklevich
Date: Fri Aug 18 12:22:39 2017
New Revision: 311189

URL: http://llvm.org/viewvc/llvm-project?rev=311189&view=rev
Log:
[TSan] Update test values

Summary:
This test was broken by the tail duplication logic being changed in
r311139, update the test values and add a note about how to properly run
a benchmark to verify that the values are safe to update.

Reviewers: vitalybuka

Reviewed By: vitalybuka

Subscribers: dvyukov, kubamracek

Differential Revision: https://reviews.llvm.org/D36889

Modified:
    compiler-rt/trunk/lib/tsan/check_analyze.sh

Modified: compiler-rt/trunk/lib/tsan/check_analyze.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/check_analyze.sh?rev=311189&r1=311188&r2=311189&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/check_analyze.sh (original)
+++ compiler-rt/trunk/lib/tsan/check_analyze.sh Fri Aug 18 12:22:39 2017
@@ -2,6 +2,14 @@
 #
 # Script that checks that critical functions in TSan runtime have correct number
 # of push/pop/rsp instructions to verify that runtime is efficient enough.
+#
+# This test can fail when backend code generation changes the output for various
+# tsan interceptors. When such a change happens, you can ensure that the
+# performance has not regressed by running the following benchmarks before and
+# after the breaking change to verify that the values in this file are safe to
+# update:
+# ./projects/compiler-rt/lib/tsan/tests/rtl/TsanRtlTest
+#   --gtest_also_run_disabled_tests --gtest_filter=DISABLED_BENCH.Mop*
 
 set -u
 
@@ -35,7 +43,7 @@ done
 for f in read1 read2 read4 read8; do
   check $f rsp 1
   check $f push 3
-  check $f pop 3
+  check $f pop 18
 done
 
 for f in func_entry func_exit; do




More information about the llvm-commits mailing list