Let CorrelatedValuePropagation preserve LazyValueInfo
authorDavid Bolvansky <david.bolvansky@gmail.com>
Wed, 24 Jul 2019 20:27:32 +0000 (20:27 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Wed, 24 Jul 2019 20:27:32 +0000 (20:27 +0000)
commitd2904ccf88e8ed487647feb90cfbf331bd888509
tree7ff2b34cb7f84e13de1688000a2f60c6b64e676b
parent70964d42ea413256b7aa763088a02ba08c6a9087
Let CorrelatedValuePropagation preserve LazyValueInfo

Summary:
This patch makes CorrelatedValuePropagation preserve LazyValueInfo by adding LazyValueInfo::eraseValue & calling it whenever an instruction is erased.

Passes `make check` , test-suite, and SPECrate 2017.

Patch by aqjune (Juneyoung Lee)

Reviewers: reames, mzolotukhin

Reviewed By: reames

Subscribers: xbolva00, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D59349

llvm-svn: 366942
llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp