mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Fix an off by one error that caused PPC LLC failures last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9efecbf47
commit
a08610c8a5
@ -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
Block a user