projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9efecb
)
Fix an off by one error that caused PPC LLC failures last night.
author
Chris Lattner
<sabre@nondot.org>
Tue, 14 Mar 2006 17:56:49 +0000
(17:56 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 14 Mar 2006 17:56:49 +0000
(17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26758
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 991b088e17c0b260236dcaf22ceb7db7b78fe73f..a392ba9ba702b359543e046c9da502692dfc4f23 100644
(file)
--- a/
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@
-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;