OSDN Git Service

NewGVN: Print out the StoredValue of a StoreExpression
authorDaniel Berlin <dberlin@dberlin.org>
Fri, 19 May 2017 20:22:14 +0000 (20:22 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Fri, 19 May 2017 20:22:14 +0000 (20:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303452 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Scalar/GVNExpression.h

index 2670a0c..2d4f4d9 100644 (file)
@@ -380,7 +380,9 @@ public:
       OS << "ExpressionTypeStore, ";
     this->BasicExpression::printInternal(OS, false);
     OS << " represents Store  " << *Store;
-    OS << " with MemoryLeader " << *getMemoryLeader();
+    OS << " with StoredValue ";
+    StoredValue->printAsOperand(OS);
+    OS << " and MemoryLeader " << *getMemoryLeader();
   }
 };