[asan] properly instrument memory accesses that have small alignment (smaller than...
authorKostya Serebryany <kcc@google.com>
Fri, 23 May 2014 11:52:07 +0000 (11:52 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 23 May 2014 11:52:07 +0000 (11:52 +0000)
commitf2938bf8dae4dd7ef762e521c63d34767ffcd61c
tree0a3f37996b1bfa3ae2a427a69d6e3e9ba2da324b
parent4f22c980f4cf9da0af984c4368ad0fbd42db6b83
[asan] properly instrument memory accesses that have small alignment (smaller than min(8,size)) by making two checks instead of one. This may slowdown some cases, e.g. long long on 32-bit or wide loads produced after loop unrolling. The benefit is higher sencitivity.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209508 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/basic.ll
test/Instrumentation/AddressSanitizer/instrumentation-with-call-threshold.ll
test/Instrumentation/AddressSanitizer/test64.ll