commit | 3564b1df4b8f4a4e4a256d6ad89863cb5da953d8 | [log] [tgz] |
---|---|---|
author | Jessica Paquette <jpaquette@apple.com> | Thu Sep 28 23:39:36 2017 +0000 |
committer | Jessica Paquette <jpaquette@apple.com> | Thu Sep 28 23:39:36 2017 +0000 |
tree | abafdea80d85299b67bb33aba1f7d26d3e239182 | |
parent | c7efeba6682f12c178be381b796ccbd98861d38a [diff] |
[MachineOutliner][NFC] Simplify logic in pruneCandidates This commit yanks out the repeated sections of code in pruneCandidates into two lambdas: ShouldSkipCandidate and Prune. This simplifies the logic in pruneCandidates significantly, and reduces the chance of introducing bugs by folding all of the shared logic into one place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314475 91177308-0d34-0410-b5e6-96231b3b80d8