[MachineOutliner] Cleanup: move findCandidates out of suffix tree
authorJessica Paquette <jpaquette@apple.com>
Thu, 27 Jul 2017 23:24:43 +0000 (23:24 +0000)
committerJessica Paquette <jpaquette@apple.com>
Thu, 27 Jul 2017 23:24:43 +0000 (23:24 +0000)
commit78681be2a4add8c54b5d2797a7e7821123528076
tree84187a27ae8919528e60c455df237525a9028a43
parent59b5e9c00c3f4c23d81648e4f644996f719cf5bb
[MachineOutliner] Cleanup: move findCandidates out of suffix tree

Doing some cleanup in preparation for some functional changes.
This commit moves findCandidates out of the suffix tree and into the
MachineOutliner class. This is much easier to follow, and removes
the burden of candidate choice from the suffix tree.

It also adds a couple FIXMEs and simplifies building outlined function
names.

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