HomePhabricator

[SimplifyLibCalls] Erase replaced instructions

Authored by nikic on Mar 29 2020, 10:10 AM.

Description

[SimplifyLibCalls] Erase replaced instructions

After RAUWing an instruction, also erase it. This makes sure we
don't perform extra InstCombine iterations to clean up the garbage.

Details