aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-13 11:34:58 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-13 11:41:15 +0100
commit9080444f3311d62a98c28ce5a72b39da9e54e3cc (patch)
tree81973cb0887f17f74bd647bbfa9c75f051ec5c07 /llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
parentdabd6abbcd8ead8a16c2d6e0b2571f86c8e033a3 (diff)
downloadllvm-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