diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-06-27 22:11:49 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-27 22:11:49 +0000 |
commit | 9a357637ef4dfa82a0e9437d07873ad562ab520c (patch) | |
tree | d7f656030af42de8e5f1a33e97d5cd7ce91e1c6e /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 0e7c7c9ee1afe0dd4928d2bef2c7661e86a9a872 (diff) | |
download | bcm5719-llvm-9a357637ef4dfa82a0e9437d07873ad562ab520c.tar.gz bcm5719-llvm-9a357637ef4dfa82a0e9437d07873ad562ab520c.zip |
Looks like this condition is inverted.
llvm-svn: 52841
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 5da6a317cb0..18810f21085 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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<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; |