forked from OSchip/llvm-project
Fix an off by one error that caused PPC LLC failures last night.
llvm-svn: 26758
This commit is contained in:
parent
c5f866bb4a
commit
ab1ed2aa96
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue