summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG/preserve-branchweights-switch-create.ll
Commit message (Collapse)AuthorAgeFilesLines
* PGO: preserve branch-weight metadata when merging two switches whereManman Ren2012-09-141-0/+48
| | | | | | | the default target of the first switch is not the basic block the second switch is in (PredDefault != BB). llvm-svn: 163916
* SimplifyCFG: preserve branch-weight metadata when creating a new switch fromManman Ren2012-09-111-0/+92
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
OpenPOWER on IntegriCloud