Looks like this condition is inverted.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 27 Jun 2008 22:11:49 +0000 (22:11 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 27 Jun 2008 22:11:49 +0000 (22:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52841 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineInstr.cpp

index 5da6a317cb0ca41c5699b8aafced00fd7d145e60..18810f21085acbaa2ff0d156c084057e7d6f5b26 100644 (file)
@@ -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<unsigned,4> 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;