diff options
author | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2023-05-11 11:40:45 +0200 |
---|---|---|
committer | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2023-05-16 16:54:51 +0200 |
commit | 198e0a12f66b6da7af1cafc116864ff8f2ec0b70 (patch) | |
tree | 0403664f587cd5c1e469776380c91a4ba6b4515c /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 64c938e8e31d311829c525b77e05dfd798c8d88f (diff) | |
download | llvm-198e0a12f66b6da7af1cafc116864ff8f2ec0b70.zip llvm-198e0a12f66b6da7af1cafc116864ff8f2ec0b70.tar.gz llvm-198e0a12f66b6da7af1cafc116864ff8f2ec0b70.tar.bz2 |
[MemCpyOpt] Fix up debug loc for simplified memset in processMemSetMemCpyDependence
Make sure the code comments in processMemSetMemCpyDependence match
with the actual transform. They indicated that the memset being
rewritten was sunk to after a memcpy, while it actually is inserted
just before the memcpy.
Also make sure we use the debug location of the original memset
when creating the new simplified memset. In the past we've been
using the debug location for the memcpy which could be a bit
confusing.
Differential Revision: https://reviews.llvm.org/D135574
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions