CorrelatedValuePropagation: Preserve DT.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Sat, 16 Jun 2018 18:57:31 +0000 (18:57 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Sat, 16 Jun 2018 18:57:31 +0000 (18:57 +0000)
commit158a7c33231e3072892331d889b8e8bcdae1a1c0
treef042e989a5c4c6403889eca4c1fda558ea96608e
parentb6b7a3bb781ff047fda6ecf3ba23a80806bb526f
CorrelatedValuePropagation: Preserve DT.

Summary:
We only modify CFG in a couple of places, and we can preserve DT there
with a little effort.

Reviewers: davide, vsk

Subscribers: hiraditya, llvm-commits

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

llvm-svn: 334895
llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
llvm/test/Other/opt-O2-pipeline.ll
llvm/test/Other/opt-O3-pipeline.ll
llvm/test/Other/opt-Os-pipeline.ll