[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 14 09:57:01 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCISelDAGToDAG.cpp updated: 1.166 -> 1.167
---
Log message:
Fix an off by one error that caused PPC LLC failures last night.
---
Diffs of the changes: (+1 -1)
PPCISelDAGToDAG.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.166 llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.167
--- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.166 Mon Mar 13 17:20:37 2006
+++ llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Tue Mar 14 11:56:49 2006
@@ -208,7 +208,7 @@
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;
More information about the llvm-commits
mailing list