HomePhabricator

[InstCombine] Refactor substitution of instruction in the parent BB (NFC)

Description

[InstCombine] Refactor substitution of instruction in the parent BB (NFC)

Add the new method LibCallSimplifier::substituteInParent() that calls
`LibCallSimplifier::replaceAllUsesWith()' and
LibCallSimplifier::eraseFromParent() back to back, simplifying the
resulting code.

Details

Committed
evandroSep 6 2019, 3:07 PM
Parents
rL371263: [ORC][RPC] Join server thread before checking condition in unit test.
Branches
Unknown
Tags
Unknown