aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorJianzhou Zhao <jianzhouzh@google.com>2021-01-12 21:49:59 +0000
committerJianzhou Zhao <jianzhouzh@google.com>2021-01-13 01:22:05 +0000
commit82655c151450e0103a3aa60725639da607f9220c (patch)
treef9d7ed4d78b4b4275fa7f7dd151bbaa9f9801d76 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent25eb7b08ba77a0b7c9c938490444bb8b5121233c (diff)
downloadllvm-82655c151450e0103a3aa60725639da607f9220c.zip
llvm-82655c151450e0103a3aa60725639da607f9220c.tar.gz
llvm-82655c151450e0103a3aa60725639da607f9220c.tar.bz2
[MSan] Tweak CopyOrigin
There could be some mis-alignments when copying origins not aligned. I believe inaligned memcpy is rare so the cases do not matter too much in practice. 1) About the change at line 50 Let dst be (void*)5, then d=5, beg=4 so we need to write 3 (4+4-5) bytes from 5 to 7. 2) About the change around line 77. Let dst be (void*)5, because of lines 50-55, the bytes from 5-7 were already writen. So the aligned copy is from 8. Reviewed-by: eugenis Differential Revision: https://reviews.llvm.org/D94552
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions