[llvm] r287584 - LSR debug fix.
Evgeny Stupachenko via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 21 13:55:03 PST 2016
Author: evstupac
Date: Mon Nov 21 15:55:03 2016
New Revision: 287584
URL: http://llvm.org/viewvc/llvm-project?rev=287584&view=rev
Log:
LSR debug fix.
Summary:
Dump instruction instead of address.
Reviewers: hfinkel
Differential Revision: http://reviews.llvm.org/D26877
From: Evgeny Stupachenko <evstupac at gmail.com>
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=287584&r1=287583&r2=287584&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Mon Nov 21 15:55:03 2016
@@ -2815,7 +2815,7 @@ void LSRInstance::FinalizeChain(IVChain
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);
More information about the llvm-commits
mailing list