Only use clairvoyance when defining a register, and then only if it has one use.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 17 May 2010 04:50:57 +0000 (04:50 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 17 May 2010 04:50:57 +0000 (04:50 +0000)
commit0c9e4f5f3ff139733d74462a0ad5b94014e764a8
treed2a849d95539d272e0419bedb30c622b8f7d4559
parent646dd7c899ea213301e193a25536a4bceebf7937
Only use clairvoyance when defining a register, and then only if it has one use.
This makes allocation independent on the ordering of use-def chains.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103935 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegAllocFast.cpp
test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.ll