[PATCH] Allow 0-weight branches in BranchProbabilityInfo.

Diego Novillo dnovillo at google.com
Wed May 6 10:18:18 PDT 2015


- Only floor branch weights to 1 in visitSwitch().


http://reviews.llvm.org/D9533

Files:
  lib/Analysis/BranchProbabilityInfo.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  test/Transforms/SampleProfile/branch.ll
  test/Transforms/SampleProfile/calls.ll
  test/Transforms/SampleProfile/propagate.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9533.25065.patch
Type: text/x-patch
Size: 7399 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150506/666d23f1/attachment.bin>


More information about the llvm-commits mailing list