[llvm] r290782 - NewGVN: Print out DefiningAccess for both loads and stores when debugging.
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 30 23:34:36 PST 2016
Author: dannyb
Date: Sat Dec 31 01:34:36 2016
New Revision: 290782
URL: http://llvm.org/viewvc/llvm-project?rev=290782&view=rev
Log:
NewGVN: Print out DefiningAccess for both loads and stores when debugging.
Modified:
llvm/trunk/include/llvm/Transforms/Scalar/GVNExpression.h
Modified: llvm/trunk/include/llvm/Transforms/Scalar/GVNExpression.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Scalar/GVNExpression.h?rev=290782&r1=290781&r2=290782&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Scalar/GVNExpression.h (original)
+++ llvm/trunk/include/llvm/Transforms/Scalar/GVNExpression.h Sat Dec 31 01:34:36 2016
@@ -24,6 +24,7 @@
#include "llvm/Support/ArrayRecycler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/Transforms/Utils/MemorySSA.h"
#include <algorithm>
namespace llvm {
@@ -318,7 +319,7 @@ public:
OS << "ExpressionTypeLoad, ";
this->BasicExpression::printInternal(OS, false);
OS << " represents Load at " << Load;
- OS << " with DefiningAccess " << DefiningAccess;
+ OS << " with DefiningAccess " << *DefiningAccess;
}
};
@@ -357,6 +358,7 @@ public:
OS << "ExpressionTypeStore, ";
this->BasicExpression::printInternal(OS, false);
OS << " represents Store at " << Store;
+ OS << " with DefiningAccess " << *DefiningAccess;
}
};
More information about the llvm-commits
mailing list