Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 7373ed1

Browse files
committed
[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
1 parent 04df7c1 commit 7373ed1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Analysis/LazyValueInfo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ void LazyValueInfoCache::solve() {
576576
"Result should be in cache!");
577577

578578
DEBUG(dbgs() << "POP " << *e.second << " in " << e.first->getName()
579-
<< " = " << lookup(e.second)[e.first] << "\n");
579+
<< " = " << getCachedValueInfo(e.second, e.first) << "\n");
580580

581581
BlockValueStack.pop();
582582
BlockValueSet.erase(e);
@@ -790,7 +790,7 @@ bool LazyValueInfoCache::solveBlockValueNonLocal(LVILatticeVal &BBLV,
790790
// to overdefined.
791791
if (Result.isOverdefined()) {
792792
DEBUG(dbgs() << " compute BB '" << BB->getName()
793-
<< "' - overdefined because of pred.\n");
793+
<< "' - overdefined because of pred (non local).\n");
794794
// If we previously determined that this is a pointer that can't be null
795795
// then return that rather than giving up entirely.
796796
if (NotNull) {
@@ -835,7 +835,7 @@ bool LazyValueInfoCache::solveBlockValuePHINode(LVILatticeVal &BBLV,
835835
// to overdefined.
836836
if (Result.isOverdefined()) {
837837
DEBUG(dbgs() << " compute BB '" << BB->getName()
838-
<< "' - overdefined because of pred.\n");
838+
<< "' - overdefined because of pred (local).\n");
839839

840840
BBLV = Result;
841841
return true;

0 commit comments

Comments
 (0)