aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-02 21:47:03 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-02 21:50:46 +0200
commit87b63c1726e24214272cd6c04825c585635d1cdc (patch)
tree8f57bbd2c93a95c67425c24e83f4445869d37d83 /llvm/tools/llvm-objcopy/llvm-objcopy.cpp
parent24f406e6d39bfd43eb1ce7fbee525256fa8adc4c (diff)
downloadllvm-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