diff options
author | Cong Hou <congh@google.com> | 2015-08-26 23:15:32 +0000 |
---|---|---|
committer | Cong Hou <congh@google.com> | 2015-08-26 23:15:32 +0000 |
commit | 03127700d5eddf373eced331c4a8a5f07bd0adfe (patch) | |
tree | fe1d8c7888fb450bae52fb8db33878dab9f0980b /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | ca22b869dc3ed2a3f535da31062735671880a5f8 (diff) | |
download | llvm-03127700d5eddf373eced331c4a8a5f07bd0adfe.zip llvm-03127700d5eddf373eced331c4a8a5f07bd0adfe.tar.gz llvm-03127700d5eddf373eced331c4a8a5f07bd0adfe.tar.bz2 |
Assign weights to edges to jump table / bit test header when lowering switch statement.
Currently, when lowering switch statement and a new basic block is built for jump table / bit test header, the edge to this new block is not assigned with a correct weight. This patch collects the edge weight from all its successors and assign this sum of weights to the edge (and also the other fall-through edge). Test cases are adjusted accordingly.
Differential Revision: http://reviews.llvm.org/D12166#fae6eca7
llvm-svn: 246104
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions