NewGVN: Fix printing of simplified expression
authorDaniel Berlin <dberlin@dberlin.org>
Sun, 21 May 2017 23:41:53 +0000 (23:41 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Sun, 21 May 2017 23:41:53 +0000 (23:41 +0000)
llvm-svn: 303519

llvm/lib/Transforms/Scalar/NewGVN.cpp

index fe55a34..aa52ffd 100644 (file)
@@ -954,7 +954,7 @@ const Expression *NewGVN::checkSimplificationResults(Expression *E,
   if (CC && CC->getDefiningExpr()) {
     if (I)
       DEBUG(dbgs() << "Simplified " << *I << " to "
-                   << " expression " << *V << "\n");
+                   << " expression " << *CC->getDefiningExpr() << "\n");
     NumGVNOpsSimplified++;
     deleteExpression(E);
     return CC->getDefiningExpr();