NewGVN: Print out DefiningAccess for both loads and stores when debugging.

llvm-svn: 290782
This commit is contained in:
Daniel Berlin 2016-12-31 07:34:36 +00:00
parent fd7afa73b6
commit 49a34165d2
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@
#include "llvm/Support/ArrayRecycler.h" #include "llvm/Support/ArrayRecycler.h"
#include "llvm/Support/Debug.h" #include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/Utils/MemorySSA.h"
#include <algorithm> #include <algorithm>
namespace llvm { namespace llvm {
@ -318,7 +319,7 @@ public:
OS << "ExpressionTypeLoad, "; OS << "ExpressionTypeLoad, ";
this->BasicExpression::printInternal(OS, false); this->BasicExpression::printInternal(OS, false);
OS << " represents Load at " << Load; OS << " represents Load at " << Load;
OS << " with DefiningAccess " << DefiningAccess; OS << " with DefiningAccess " << *DefiningAccess;
} }
}; };
@ -357,6 +358,7 @@ public:
OS << "ExpressionTypeStore, "; OS << "ExpressionTypeStore, ";
this->BasicExpression::printInternal(OS, false); this->BasicExpression::printInternal(OS, false);
OS << " represents Store at " << Store; OS << " represents Store at " << Store;
OS << " with DefiningAccess " << *DefiningAccess;
} }
}; };