diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-02 21:47:03 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-02 21:50:46 +0200 |
commit | 87b63c1726e24214272cd6c04825c585635d1cdc (patch) | |
tree | 8f57bbd2c93a95c67425c24e83f4445869d37d83 /llvm/tools/llvm-objcopy/llvm-objcopy.cpp | |
parent | 24f406e6d39bfd43eb1ce7fbee525256fa8adc4c (diff) | |
download | llvm-87b63c1726e24214272cd6c04825c585635d1cdc.zip llvm-87b63c1726e24214272cd6c04825c585635d1cdc.tar.gz llvm-87b63c1726e24214272cd6c04825c585635d1cdc.tar.bz2 |
[MemCpyOpt] Avoid double invalidation (NFCI)
The removal of the cpy instruction is left to the caller of
performCallSlotOptzn(), including the invalidation of MD. Both
call-sites already do this.
Also handle incrementation of NumMemCpyInstr consistently at the
call-site. One of the call-site was already doing this, which
ended up incrementing the statistic twice.
This fix was part of D26739.
Diffstat (limited to 'llvm/tools/llvm-objcopy/llvm-objcopy.cpp')
0 files changed, 0 insertions, 0 deletions