HomePhabricator

[MemCpyOpt] Don't shorten memset if memcpy operands may be the same

Authored by nikic on Oct 10 2020, 9:57 AM.

Description

[MemCpyOpt] Don't shorten memset if memcpy operands may be the same

If the memcpy operands are the same (which is allowed since D86815)
then the memcpy is effectively a no-op and the partially overlapping
memset is not dead.

Differential Revision: https://reviews.llvm.org/D89192

Details

Committed
nikicOct 13 2020, 12:19 PM
Differential Revision
D89192: [MemCpyOpt] Don't shorten memset if memcpy operands may be the same
Parents
rGe2c888f57168: [gn build] Port 77bb3ebebbc
Branches
Unknown
Tags
Unknown