mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-12 07:40:58 +00:00
[LVI] Fix debug output
Due to staleness in a patch I committed yesterday, the debug output was reporting overdefined cases as being undefined. Confusing to say the least. The mistake appears to have only effected the debug output thankfully. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
04df7c1989
commit
7373ed1ff6
@ -576,7 +576,7 @@ void LazyValueInfoCache::solve() {
|
|||||||
"Result should be in cache!");
|
"Result should be in cache!");
|
||||||
|
|
||||||
DEBUG(dbgs() << "POP " << *e.second << " in " << e.first->getName()
|
DEBUG(dbgs() << "POP " << *e.second << " in " << e.first->getName()
|
||||||
<< " = " << lookup(e.second)[e.first] << "\n");
|
<< " = " << getCachedValueInfo(e.second, e.first) << "\n");
|
||||||
|
|
||||||
BlockValueStack.pop();
|
BlockValueStack.pop();
|
||||||
BlockValueSet.erase(e);
|
BlockValueSet.erase(e);
|
||||||
@ -790,7 +790,7 @@ bool LazyValueInfoCache::solveBlockValueNonLocal(LVILatticeVal &BBLV,
|
|||||||
// to overdefined.
|
// to overdefined.
|
||||||
if (Result.isOverdefined()) {
|
if (Result.isOverdefined()) {
|
||||||
DEBUG(dbgs() << " compute BB '" << BB->getName()
|
DEBUG(dbgs() << " compute BB '" << BB->getName()
|
||||||
<< "' - overdefined because of pred.\n");
|
<< "' - overdefined because of pred (non local).\n");
|
||||||
// If we previously determined that this is a pointer that can't be null
|
// If we previously determined that this is a pointer that can't be null
|
||||||
// then return that rather than giving up entirely.
|
// then return that rather than giving up entirely.
|
||||||
if (NotNull) {
|
if (NotNull) {
|
||||||
@ -835,7 +835,7 @@ bool LazyValueInfoCache::solveBlockValuePHINode(LVILatticeVal &BBLV,
|
|||||||
// to overdefined.
|
// to overdefined.
|
||||||
if (Result.isOverdefined()) {
|
if (Result.isOverdefined()) {
|
||||||
DEBUG(dbgs() << " compute BB '" << BB->getName()
|
DEBUG(dbgs() << " compute BB '" << BB->getName()
|
||||||
<< "' - overdefined because of pred.\n");
|
<< "' - overdefined because of pred (local).\n");
|
||||||
|
|
||||||
BBLV = Result;
|
BBLV = Result;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user