From e89496fe63c179c189558b1d8e2a7e9a8faee904 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Fri, 4 May 2012 22:53:26 +0000 Subject: [PATCH] Remove extra comma in debug output. llvm-svn: 156219 --- llvm/lib/CodeGen/MachineInstr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 46ea00383ba4..594482e2ac9c 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -264,7 +264,7 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const { NeedComma = true; } - if (isKill() || isDead() || isUndef() || isInternalRead()) { + if (isKill() || isDead() || (isUndef() && isUse()) || isInternalRead()) { if (NeedComma) OS << ','; NeedComma = false; if (isKill()) {