Fix PR3243: a LiveVariables bug. When HandlePhysRegKill is checking whether the last...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 20 Jan 2009 21:25:12 +0000 (21:25 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 20 Jan 2009 21:25:12 +0000 (21:25 +0000)
commita894ae130b6e69a367aa691eec7e96973a20e901
treebea608a84ccd26f40b52d9c017d2ab0b4f7f79f0
parent9c70819da0cb4e418adfff4e6610317dd7209eda
Fix PR3243: a LiveVariables bug. When HandlePhysRegKill is checking whether the last reference is also the last def (i.e. dead def), it should also check if last reference is the current machine instruction being processed. This can happen when it is processing a physical register use and setting the current machine instruction as sub-register's last ref.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62617 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveVariables.h
lib/CodeGen/LiveVariables.cpp
test/CodeGen/X86/pr3243.ll [new file with mode: 0644]