[MachineOutliner][NFC] Remove buildCandidateList and replace with findCandidates
authorJessica Paquette <jpaquette@apple.com>
Wed, 5 Dec 2018 23:39:07 +0000 (23:39 +0000)
committerJessica Paquette <jpaquette@apple.com>
Wed, 5 Dec 2018 23:39:07 +0000 (23:39 +0000)
commitce3a2dcf70c07e4255cbc37612e948ad024224ee
tree0961132b797e8c6f847fe6a560b45d7712d33807
parente18d6ff036fe8d62e19d9dc44f103c3d7ead9c64
[MachineOutliner][NFC] Remove buildCandidateList and replace with findCandidates

More refactoring.

Since the pruning logic has changed, and the candidate list is gone,
everything can be sunk into findCandidates.

We no longer need to keep track of the length of the longest substring, so we
can drop all of that logic as well.

After this, we just find all of the candidates and move to outlining.

llvm-svn: 348428
llvm/lib/CodeGen/MachineOutliner.cpp