From 2a6e163edc2f5c81ad1f4c527c354b1a727676b7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 19 Jan 2005 17:11:51 +0000 Subject: [PATCH] Just in case, handle something that is both a use and a def. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19696 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LiveVariables.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index 291cc7934a4..80316102601 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -310,7 +310,8 @@ void LiveVariables::instructionChanged(MachineInstr *OldMI, // Update the defining instruction. if (VI.DefInst == OldMI) VI.DefInst = NewMI; - } else if (MO.isUse()) { + } + if (MO.isUse()) { // If this is a kill of the value, update the VI kills list. if (VI.removeKill(OldMI)) VI.Kills.push_back(NewMI); // Yes, there was a kill of it