Fix an off by one error that caused PPC LLC failures last night.

llvm-svn: 26758
This commit is contained in:
Chris Lattner 2006-03-14 17:56:49 +00:00
parent c5f866bb4a
commit ab1ed2aa96
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ void PPCDAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
SSARegMap *RegMap = DAG.getMachineFunction().getSSARegMap();
bool HasVectorVReg = false;
for (unsigned i = MRegisterInfo::FirstVirtualRegister,
e = RegMap->getLastVirtReg(); i != e; ++i)
e = RegMap->getLastVirtReg()+1; i != e; ++i)
if (RegMap->getRegClass(i) == &PPC::VRRCRegClass) {
HasVectorVReg = true;
break;