diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-30 19:12:33 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-30 19:12:33 +0000 |
| commit | 38a0b94dceb6c8a4ae06961b42310ee1026b3192 (patch) | |
| tree | 29c4d50a2fcf893cdaf8977152a2a80f6526748d /llvm/lib | |
| parent | fe0739dffb1e5e2e2be3ebc9c15ff9a732a8b9f6 (diff) | |
| download | bcm5719-llvm-38a0b94dceb6c8a4ae06961b42310ee1026b3192.tar.gz bcm5719-llvm-38a0b94dceb6c8a4ae06961b42310ee1026b3192.zip | |
When a physreg is live-in and live through a basic block, make sure its live
range covers the entire block.
The live range can't be terminated at a random instruction.
llvm-svn: 130619
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 19bb7e34d25..9257191f7fc 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -638,7 +638,7 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB, end = MIIdx.getStoreIndex(); } else { DEBUG(dbgs() << " live through"); - end = baseIndex; + end = getMBBEndIdx(MBB); } } |

