[PATCH] tsan: properly instrument unaligned accesses

Kostya Serebryany kcc at google.com
Wed Jan 21 19:02:47 PST 2015


================
Comment at: test/Instrumentation/ThreadSanitizer/unaligned.ll:11
@@ +10,3 @@
+
+; CHECK: define i16 @test_unaligned_read2(i16* %a)
+; CHECK:        call void @__tsan_func_entry(i8* %0)
----------------
CHECK-LABEL, here and below

================
Comment at: test/tsan/aligned_vs_unaligned_race.cc:17
@@ -17,2 +16,3 @@
 void *Thread2(void *x) {
+  sleep(1);
   char *p1 = reinterpret_cast<char *>(&Global[0]);
----------------
you probably want to update the test here (remove sleep)

http://reviews.llvm.org/D7053

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list