Rewrite the physreg part of findLastUseBefore().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 8 Mar 2013 18:08:57 +0000 (18:08 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 8 Mar 2013 18:08:57 +0000 (18:08 +0000)
commit778ef97c76af82ef9e312529e6bd9d71d3c040ae
treefdedba8fdea53e53595188adc5bda877f76f7323
parente77b6ceb02b07659092b969fb4a96b56c52375ad
Rewrite the physreg part of findLastUseBefore().

To find the last use of a register unit, start from the bottom and scan
upwards until a user is found.

<rdar://problem/13353090>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176706 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
test/CodeGen/X86/misched-crash.ll [new file with mode: 0644]