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:
795d950
)
Do not add livein's to entry MBB twice.
author
Evan Cheng
<evan.cheng@apple.com>
Sat, 17 Feb 2007 11:11:27 +0000
(11:11 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Sat, 17 Feb 2007 11:11:27 +0000
(11:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34382
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegAllocLinearScan.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegAllocLinearScan.cpp
b/lib/CodeGen/RegAllocLinearScan.cpp
index bd44e81244e235a2e509a890617a47d27b0e9f17..3a1bfc25fe87a90a6eb977ec7b05d9fd5826637d 100644
(file)
--- a/
lib/CodeGen/RegAllocLinearScan.cpp
+++ b/
lib/CodeGen/RegAllocLinearScan.cpp
@@
-292,8
+292,9
@@
void RA::linearScan()
}
// A brute force way of adding live-ins to every BB.
- for (MachineFunction::iterator MBB = mf_->begin(), E = mf_->end();
- MBB != E; ++MBB) {
+ MachineFunction::iterator MBB = mf_->begin();
+ ++MBB; // Skip entry MBB.
+ for (MachineFunction::iterator E = mf_->end(); MBB != E; ++MBB) {
unsigned StartIdx = li_->getMBBStartIdx(MBB->getNumber());
for (IntervalPtrs::iterator i = fixed_.begin(), e = fixed_.end();
i != e; ++i)