Be more strict about detecting multi-use blocks for isolation.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 22 Oct 2010 22:48:56 +0000 (22:48 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 22 Oct 2010 22:48:56 +0000 (22:48 +0000)
commit2bfb32468404eb68dcc1b69a34336794b20e3f33
treed7b5fd2a766a86e0b51f4620681a9a7c5ef7a474
parent432a8142ef8efc4978ceb8d257a21240e2d29777
Be more strict about detecting multi-use blocks for isolation.

When a block has exactly two uses and the register is both live-in and live-out,
don't isolate the block. We would be inserting two copies, so we haven't really
made any progress.

If the live-in and live-out values separate into disconnected components after
splitting, we would be making progress. We can't detect that for now.

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