Teach simplifycfg to recompute branch weights when merging some branches, and
authorNick Lewycky <nicholas@mxc.ca>
Tue, 27 Dec 2011 04:31:52 +0000 (04:31 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 27 Dec 2011 04:31:52 +0000 (04:31 +0000)
commit06cc66f65a5012471835068029f3f4943790f584
treead0e9335fcb3e0ec2bd561121bc618b377de7527
parentda32cc6176d8ca2cd9cf387f5818ae911c91dc3c
Teach simplifycfg to recompute branch weights when merging some branches, and
to discard weights when appropriate. Still more to do (and a new TODO), but
it's a start!

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