[llvm-commits] [llvm] r59544 - /llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
Owen Anderson
resistor at mac.com
Tue Nov 18 12:53:59 PST 2008
Author: resistor
Date: Tue Nov 18 14:53:59 2008
New Revision: 59544
URL: http://llvm.org/viewvc/llvm-project?rev=59544&view=rev
Log:
Fix a bug introduced by my previous patch. With this change, SPEC is now clean with prealloc splitting enabled.
Modified:
llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
Modified: llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp?rev=59544&r1=59543&r2=59544&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp (original)
+++ llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp Tue Nov 18 14:53:59 2008
@@ -233,7 +233,7 @@
unsigned &RestoreIndex) {
// FIXME: Allow spill to be inserted to the beginning of the mbb. Update mbb
// begin index accordingly.
- MachineBasicBlock::iterator Pt = MBB->getFirstTerminator();
+ MachineBasicBlock::iterator Pt = MBB->end();
unsigned EndIdx = LIs->getMBBEndIdx(MBB);
// Go bottom up if RefsInMBB is empty and the end of the mbb isn't beyond
More information about the llvm-commits
mailing list