HomePhabricator

[MemCpyOpt] Add helper to erase instructions (NFC)

Authored by nikic on Oct 2 2020, 11:42 AM.

Description

[MemCpyOpt] Add helper to erase instructions (NFC)

Next to erasing the instruction, we also always want to remove
it from MSSA and MD. Use a common function to do so.

This is a refactoring split out from D26739.

Details

Committed
nikicOct 2 2020, 12:52 PM
Parents
rG87b63c1726e2: [MemCpyOpt] Avoid double invalidation (NFCI)
Branches
Unknown
Tags
Unknown