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:
59850a8
)
In line with the previous patch, do not assert out if analyzing a dead basic block.
author
Chris Lattner
<sabre@nondot.org>
Tue, 29 Jun 2004 07:16:23 +0000
(07:16 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 29 Jun 2004 07:16:23 +0000
(07:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14475
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveIntervalAnalysis.cpp
b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 7569875ad08ce10ffa342857180a0e0784e313e2..4fc08ec6b9c42e4b33400e65911be06b2ae3bfb9 100644
(file)
--- a/
lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/
lib/CodeGen/LiveIntervalAnalysis.cpp
@@
-368,8
+368,11
@@
void LiveIntervals::handlePhysicalRegisterDef(MachineBasicBlock* mbb,
}
}
+ // LiveVariables does not compute information for dead basic blocks.
+ DEBUG(std::cerr << "Didn't find the end of the interval. Must be in a "
+ "dead block.");
+ end = getDefIndex(start)+1;
exit:
- assert(start < end && "did not find end of interval?");
interval.addRange(start, end);
DEBUG(std::cerr << '\n');
}