[NFC][LICM] Factor out instruction erasing logic
authorMax Kazantsev <max.kazantsev@azul.com>
Fri, 2 Nov 2018 00:21:45 +0000 (00:21 +0000)
committerMax Kazantsev <max.kazantsev@azul.com>
Fri, 2 Nov 2018 00:21:45 +0000 (00:21 +0000)
commit872bb74b0aa344224ce48699479e2b8d71fd05c1
tree19b6dd1db4242f9a6369de1e2fe05a4f9c87cc4e
parentfb84fd7c8e50fa056611a951e2c277ee08bcc3df
[NFC][LICM] Factor out instruction erasing logic

This patch factors out a function that makes all required updates
whenever an instruction gets erased.

Differential Revision: https://reviews.llvm.org/D54011
Reviewed By: apilipenko

llvm-svn: 345914
llvm/lib/Transforms/Scalar/LICM.cpp