Changes in directory llvm/lib/CodeGen:
RegAllocLinearScan.cpp updated: 1.137 -> 1.138 --- Log message: Do not add livein's to entry MBB twice. --- Diffs of the changes: (+3 -2) RegAllocLinearScan.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.137 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.138 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.137 Fri Feb 16 03:05:02 2007 +++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Sat Feb 17 05:11:27 2007 @@ -292,8 +292,9 @@ } // 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) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits