mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
It is safe to ignore LastSplitPoint when the variable is not live out.
No code will be inserted after the split point anyway. llvm-svn: 126319
This commit is contained in:
parent
aaac1b01fd
commit
5edc1f287b
@ -961,10 +961,10 @@ void SplitEditor::splitSingleBlocks(const SplitAnalysis::BlockPtrSet &Blocks) {
|
||||
|
||||
openIntv();
|
||||
SlotIndex SegStart = enterIntvBefore(BI.FirstUse);
|
||||
if (BI.LastUse < BI.LastSplitPoint) {
|
||||
if (!BI.LiveOut || BI.LastUse < BI.LastSplitPoint) {
|
||||
useIntv(SegStart, leaveIntvAfter(BI.LastUse));
|
||||
} else {
|
||||
// THe last use os after tha last valid split point.
|
||||
// The last use is after the last valid split point.
|
||||
SlotIndex SegStop = leaveIntvBefore(BI.LastSplitPoint);
|
||||
useIntv(SegStart, SegStop);
|
||||
overlapIntv(SegStop, BI.LastUse);
|
||||
|
Loading…
Reference in New Issue
Block a user