[llvm-commits] [llvm] r157702 - /llvm/trunk/lib/CodeGen/MachineInstr.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed May 30 11:38:56 PDT 2012
Author: stoklund
Date: Wed May 30 13:38:56 2012
New Revision: 157702
URL: http://llvm.org/viewvc/llvm-project?rev=157702&view=rev
Log:
Remove some redundant tests.
An empty list is not represented as a null pointer. Let TRI do its own
shortcuts.
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=157702&r1=157701&r2=157702&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Wed May 30 13:38:56 2012
@@ -1766,9 +1766,7 @@
// There exists a super-register that's marked dead.
if (RegInfo->isSuperRegister(IncomingReg, Reg))
return true;
- if (RegInfo->getSubRegisters(IncomingReg) &&
- RegInfo->getSuperRegisters(Reg) &&
- RegInfo->isSubRegister(IncomingReg, Reg))
+ if (RegInfo->isSubRegister(IncomingReg, Reg))
DeadOps.push_back(i);
}
}
More information about the llvm-commits
mailing list