HomePhabricator

Revert "[SimplifyLibCalls] Erase replaced instructions"

Authored by bkramer on Apr 2 2020, 8:30 AM.

Description

Revert "[SimplifyLibCalls] Erase replaced instructions"

This reverts commit 2a77544ad5911a38f81c0300385033fced1cc66d. This
introduces a use-after-free in Transforms/InstCombine/sincospi.ll.
Found by asan.