[llvm-commits] [llvm] r83103 - /llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
Jim Grosbach
grosbach at apple.com
Tue Sep 29 13:11:10 PDT 2009
Author: grosbach
Date: Tue Sep 29 15:11:10 2009
New Revision: 83103
URL: http://llvm.org/viewvc/llvm-project?rev=83103&view=rev
Log:
Additional check for regno==0
Modified:
llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterScavenging.cpp?rev=83103&r1=83102&r2=83103&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterScavenging.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterScavenging.cpp Tue Sep 29 15:11:10 2009
@@ -280,7 +280,7 @@
// Exclude all the registers being used by the instruction.
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) {
MachineOperand &MO = I->getOperand(i);
- if (MO.isReg() && !TRI->isVirtualRegister(MO.getReg()))
+ if (MO.isReg() && MO.getReg() != 0 && !TRI->isVirtualRegister(MO.getReg()))
Candidates.reset(MO.getReg());
}
More information about the llvm-commits
mailing list