[SimplifyCFG] propagate branch metadata when creating select (PR27344)
authorSanjay Patel <spatel@rotateright.com>
Fri, 15 Apr 2016 15:32:12 +0000 (15:32 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 15 Apr 2016 15:32:12 +0000 (15:32 +0000)
commitf11ab05bdb2f032c1fbddf11987e073e112d9b0a
tree77c26ebae2ae94271efd63d47520b6f3a59fb27d
parentc5727ecd8884dff1a6abb0559275638f5d235469
[SimplifyCFG] propagate branch metadata when creating select (PR27344)

This is almost identical to:
http://reviews.llvm.org/rL264527

This doesn't solve PR27344; it just allows the profile weights to survive.
To solve the bug, we need to use the profile weights in the backend.

llvm-svn: 266442
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/two-entry-phi-return.ll