diff options
author | Manman Ren <mren@apple.com> | 2012-09-11 17:43:35 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-09-11 17:43:35 +0000 |
commit | 571d9e4b804701593b6c0a5fb7a0d3beff9923dd (patch) | |
tree | e73c2aa8b76cc2ade59a4241d4c01d7bae7b6fb6 /llvm/lib/CodeGen/MachineLoopInfo.cpp | |
parent | 66d2e88799a7aeeb2dbdd69456d5e47b4f399b6a (diff) | |
download | llvm-571d9e4b804701593b6c0a5fb7a0d3beff9923dd.zip llvm-571d9e4b804701593b6c0a5fb7a0d3beff9923dd.tar.gz llvm-571d9e4b804701593b6c0a5fb7a0d3beff9923dd.tar.bz2 |
SimplifyCFG: preserve branch-weight metadata when creating a new switch from
a pair of switch/branch where both depend on the value of the same variable and
the default case of the first switch/branch goes to the second switch/branch.
Code clean up and fixed a few issues:
1> handling the case where some cases of the 2nd switch are invalidated
2> correctly calculate the weight for the 2nd switch when it is a conditional eq
Testing case is modified from Alastair's original patch.
llvm-svn: 163635
Diffstat (limited to 'llvm/lib/CodeGen/MachineLoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions