mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +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:
@@ -208,7 +208,7 @@ void PPCDAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
|
|||||||
SSARegMap *RegMap = DAG.getMachineFunction().getSSARegMap();
|
SSARegMap *RegMap = DAG.getMachineFunction().getSSARegMap();
|
||||||
bool HasVectorVReg = false;
|
bool HasVectorVReg = false;
|
||||||
for (unsigned i = MRegisterInfo::FirstVirtualRegister,
|
for (unsigned i = MRegisterInfo::FirstVirtualRegister,
|
||||||
e = RegMap->getLastVirtReg(); i != e; ++i)
|
e = RegMap->getLastVirtReg()+1; i != e; ++i)
|
||||||
if (RegMap->getRegClass(i) == &PPC::VRRCRegClass) {
|
if (RegMap->getRegClass(i) == &PPC::VRRCRegClass) {
|
||||||
HasVectorVReg = true;
|
HasVectorVReg = true;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user