summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/no-duplicate.ll
Commit message (Collapse)AuthorAgeFilesLines
* [MBP] Avoid tail duplication if it can't bring benefitGuozhi Wei2019-12-061-0/+91
Current tail duplication integrated in bb layout is designed to increase the fallthrough from a BB's predecessor to its successor, but we have observed cases that duplication doesn't increase fallthrough, or it brings too much size overhead. To overcome these two issues in function canTailDuplicateUnplacedPreds I add two checks: make sure there is at least one duplication in current work set. the number of duplication should not exceed the number of successors. The modification in hasBetterLayoutPredecessor fixes a bug that potential predecessor must be at the bottom of a chain. Differential Revision: https://reviews.llvm.org/D64376
OpenPOWER on IntegriCloud