OSDN Git Service

Revert "[CorrelatedValuePropagation] Fix prof branch_weights metadata handling for...
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 28 May 2019 21:28:24 +0000 (21:28 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 28 May 2019 21:28:24 +0000 (21:28 +0000)
commit03c816bd0e05d7a2638b23917f8a9e4bcdfbfb0f
treecd7e9c7924812e9ebcc9260912c89608583f1181
parent107508a29754d47d61a712011b5a0b8b53a0a135
Revert "[CorrelatedValuePropagation] Fix prof branch_weights metadata handling for SwitchInst"

This reverts commit 53f2f3286572cb879b3861d7c15480e4d830dd3b.

As reported on D62126, this causes assertion failures if the switch
has incorrect branch_weights metadata, which may happen as a result
of other transforms not handling it correctly yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361881 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
test/Transforms/CorrelatedValuePropagation/profmd.ll [deleted file]