[llvm-commits] [llvm] r52841 - /llvm/trunk/lib/CodeGen/MachineInstr.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jun 27 15:11:49 PDT 2008
Author: evancheng
Date: Fri Jun 27 17:11:49 2008
New Revision: 52841
URL: http://llvm.org/viewvc/llvm-project?rev=52841&view=rev
Log:
Looks like this condition is inverted.
Modified:
llvm/trunk/lib/CodeGen/MachineInstr.cpp
Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstr.cpp?rev=52841&r1=52840&r2=52841&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Fri Jun 27 17:11:49 2008
@@ -780,7 +780,7 @@
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 @@
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;
More information about the llvm-commits
mailing list