[GVN] Invalidate cached info for values replaced by equality propagation
authorJohn Brawn <john.brawn@arm.com>
Mon, 10 Sep 2018 12:23:05 +0000 (12:23 +0000)
committerJohn Brawn <john.brawn@arm.com>
Mon, 10 Sep 2018 12:23:05 +0000 (12:23 +0000)
commit8967e18c4a7c2bc9dd88c40a68368da68b452062
tree4bf689eabb0087b7b29938272ca87f7d1872a47e
parentd1f4571a66311e4422f0a653b944c75291542e2c
[GVN] Invalidate cached info for values replaced by equality propagation

When GVN propagates an equality by replacing one value with another it also
needs to invalidate the cached information for the value being replaced.

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

llvm-svn: 341820
llvm/lib/Transforms/Scalar/GVN.cpp
llvm/test/Transforms/GVN/condprop.ll