[TSan] Adjust expectation for check_analyze.sh
authorCraig Topper <craig.topper@gmail.com>
Thu, 6 Apr 2017 17:09:08 +0000 (17:09 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 6 Apr 2017 17:09:08 +0000 (17:09 +0000)
r299658 fixed a case where InstCombine was replicating instructions instead of combining. Fixing this reduced the number of pushes and pops in the __tsan_read and __tsan_write functions.

Adjust the expectations to account for this after talking to Dmitry Vyukov.

llvm-svn: 299661

compiler-rt/lib/tsan/check_analyze.sh

index a5d3632..d454ec2 100755 (executable)
@@ -26,22 +26,16 @@ check() {
   fi
 }
 
-for f in write1; do
+for f in write1 write2 write4 write8; do
   check $f rsp 1
   check $f push 2
   check $f pop 2
 done
 
-for f in write2 write4 write8; do
-  check $f rsp 1
-  check $f push 3
-  check $f pop 3
-done
-
 for f in read1 read2 read4 read8; do
   check $f rsp 1
-  check $f push 5
-  check $f pop 5
+  check $f push 4
+  check $f pop 4
 done
 
 for f in func_entry func_exit; do