diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-13 11:34:58 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-13 11:41:15 +0100 |
commit | 9080444f3311d62a98c28ce5a72b39da9e54e3cc (patch) | |
tree | 81973cb0887f17f74bd647bbfa9c75f051ec5c07 /llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp | |
parent | dabd6abbcd8ead8a16c2d6e0b2571f86c8e033a3 (diff) | |
download | llvm-9080444f3311d62a98c28ce5a72b39da9e54e3cc.zip llvm-9080444f3311d62a98c28ce5a72b39da9e54e3cc.tar.gz llvm-9080444f3311d62a98c28ce5a72b39da9e54e3cc.tar.bz2 |
[MemCpyOpt] Don't generate zero-size memset
If a memset destination is overwritten by a memcpy and the sizes
are exactly the same, then the memset is simply dead. We can
directly drop it, instead of replacing it with a memset of zero
size, which is particularly ugly for the case of a dynamic size.
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp')
0 files changed, 0 insertions, 0 deletions