]> granicus.if.org Git - llvm/commit
[SimplifyCFG] propagate branch metadata when creating select (retry r268550 with...
authorSanjay Patel <spatel@rotateright.com>
Fri, 6 May 2016 17:07:47 +0000 (17:07 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 6 May 2016 17:07:47 +0000 (17:07 +0000)
commit576f0d9e3e82fc854a80a1b8102adf7b9004cd6c
tree54db145e36860631c7305def692efbf290216450
parentb3b95be2f27a756c1eeccea4df3b6d806d2fa083
[SimplifyCFG] propagate branch metadata when creating select (retry r268550 with possible fix)

Retrying r268550 which was reverted at r268577 due a memory sanitizer failure.
I have not been able to reproduce that failure, but I've taken a guess at fixing
the problem in this version of the patch and will watch for another failure.

Original commit message:
Unlike earlier similar fixes, we need to recalculate the branch weights
in this case.

Differential Revision: http://reviews.llvm.org/D19674

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268751 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/preserve-branchweights.ll