]> granicus.if.org Git - llvm/commitdiff
LSR debug fix.
authorEvgeny Stupachenko <evstupac@gmail.com>
Mon, 21 Nov 2016 21:55:03 +0000 (21:55 +0000)
committerEvgeny Stupachenko <evstupac@gmail.com>
Mon, 21 Nov 2016 21:55:03 +0000 (21:55 +0000)
Summary:
Dump instruction instead of address.
Reviewers: hfinkel

Differential Revision: http://reviews.llvm.org/D26877

From: Evgeny Stupachenko <evstupac@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287584 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index 75677079e37063b6b5eb8264d6c5aa2bc824b530..3805d455a8ac380c87c7e11765e77d0e759ecf8a 100644 (file)
@@ -2815,7 +2815,7 @@ void LSRInstance::FinalizeChain(IVChain &Chain) {
   DEBUG(dbgs() << "Final Chain: " << *Chain.Incs[0].UserInst << "\n");
 
   for (const IVInc &Inc : Chain) {
-    DEBUG(dbgs() << "        Inc: " << Inc.UserInst << "\n");
+    DEBUG(dbgs() << "        Inc: " << *Inc.UserInst << "\n");
     auto UseI = find(Inc.UserInst->operands(), Inc.IVOperand);
     assert(UseI != Inc.UserInst->op_end() && "cannot find IV operand");
     IVIncSet.insert(UseI);