From: Evan Cheng Date: Fri, 27 Jun 2008 22:11:49 +0000 (+0000) Subject: Looks like this condition is inverted. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=01b2e236b571e7c22ee8493b7ea19eda9830d75c;p=oota-llvm.git Looks like this condition is inverted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52841 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 5da6a317cb0..18810f21085 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -780,7 +780,7 @@ bool MachineInstr::addRegisterDead(unsigned IncomingReg, const TargetRegisterInfo *RegInfo, bool AddIfNotFound) { bool isPhysReg = TargetRegisterInfo::isPhysicalRegister(IncomingReg); - bool hasAliases = isPhysReg && RegInfo->getAliasSet(IncomingReg) == 0; + bool hasAliases = isPhysReg && RegInfo->getAliasSet(IncomingReg); bool Found = false; SmallVector DeadOps; for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { @@ -792,7 +792,7 @@ bool MachineInstr::addRegisterDead(unsigned IncomingReg, MO.setIsDead(); Found = true; } else if (hasAliases && MO.isDead() && - TargetRegisterInfo::isPhysicalRegister(Reg)) { + TargetRegisterInfo::isPhysicalRegister(Reg)) { // There exists a super-register that's marked dead. if (RegInfo->isSuperRegister(IncomingReg, Reg)) Found = true;