[MachineOutliner][NFC] Clean up prune logic a bit
authorJessica Paquette <jpaquette@apple.com>
Tue, 17 Oct 2017 21:11:58 +0000 (21:11 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 17 Oct 2017 21:11:58 +0000 (21:11 +0000)
commit6c9a284ff3957d7f9f3957f01351f17500b01825
tree18cf04d8774b343184dac7d60225ec69d650a080
parent33287ae950f61123989c180bf9a176c85812e461
[MachineOutliner][NFC] Clean up prune logic a bit

Move the prune logic in pruneOverlaps to a new function, prune. This lets us
reuse the prune functionality. Makes the code a bit more readable. It'll also
make it easier to emit remarks/debug statements for pruned functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316031 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineOutliner.cpp