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:
5928046
)
Don't recycle loop variables.
author
Matt Beaumont-Gay
<matthewbg@google.com>
Thu, 21 Apr 2011 19:46:23 +0000
(19:46 +0000)
committer
Matt Beaumont-Gay
<matthewbg@google.com>
Thu, 21 Apr 2011 19:46:23 +0000
(19:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129928
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SplitKit.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SplitKit.cpp
b/lib/CodeGen/SplitKit.cpp
index 703ac36290777e000620c1acaefb98ddff7b3e91..c6e1bd57bd010179a30cf99cdc003c92917d5412 100644
(file)
--- a/
lib/CodeGen/SplitKit.cpp
+++ b/
lib/CodeGen/SplitKit.cpp
@@
-1001,7
+1001,7
@@
void SplitEditor::finish(SmallVectorImpl<unsigned> *LRMap) {
DEBUG(dbgs() << " " << NumComp << " components: " << *li << '\n');
SmallVector<LiveInterval*, 8> dups;
dups.push_back(li);
- for (unsigned
i = 1; i != NumComp; ++i
)
+ for (unsigned
j = 1; j != NumComp; ++j
)
dups.push_back(&Edit->create(LIS, VRM));
ConEQ.Distribute(&dups[0], MRI);
// The new intervals all map back to i.