HomePhabricator

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

Authored by evandro on Sep 6 2019, 3:07 PM.

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.

llvm-svn: 371264

Details

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