[llvm] d1f41b2 - [NFC][LoopFusion] Fix printing of the guard branch.
Whitney Tsang via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 25 18:45:47 PST 2019
Author: Whitney Tsang
Date: 2019-12-26T02:45:29Z
New Revision: d1f41b2ca9991b131f9daba6953c8b805282b83a
URL: https://github.com/llvm/llvm-project/commit/d1f41b2ca9991b131f9daba6953c8b805282b83a
DIFF: https://github.com/llvm/llvm-project/commit/d1f41b2ca9991b131f9daba6953c8b805282b83a.diff
LOG: [NFC][LoopFusion] Fix printing of the guard branch.
Reviewer: kbarton, jdoerfert
Reviewed By: jdoerfert
Subscribers: hiraditya, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D71878
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopFuse.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopFuse.cpp b/llvm/lib/Transforms/Scalar/LoopFuse.cpp
index b17b243d8a30..e1738f08eb23 100644
--- a/llvm/lib/Transforms/Scalar/LoopFuse.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopFuse.cpp
@@ -257,7 +257,12 @@ struct FusionCandidate {
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD void dump() const {
- dbgs() << "\tGuardBranch: "
+ dbgs() << "\tGuardBranch: ";
+ if (GuardBranch)
+ dbgs() << *GuardBranch;
+ else
+ dbgs() << "nullptr";
+ dbgs() << "\n"
<< (GuardBranch ? GuardBranch->getName() : "nullptr") << "\n"
<< "\tPreheader: " << (Preheader ? Preheader->getName() : "nullptr")
<< "\n"
More information about the llvm-commits
mailing list