[llvm] r344161 - [VPlan] Fix CondBit quoting in dumpBasicBlock
Renato Golin via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 10 10:55:21 PDT 2018
Author: rengolin
Date: Wed Oct 10 10:55:21 2018
New Revision: 344161
URL: http://llvm.org/viewvc/llvm-project?rev=344161&view=rev
Log:
[VPlan] Fix CondBit quoting in dumpBasicBlock
Quotes were being printed for VPInstructions but not the rest.
Modified:
llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp?rev=344161&r1=344160&r2=344161&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp Wed Oct 10 10:55:21 2018
@@ -543,8 +543,10 @@ void VPlanPrinter::dumpBasicBlock(const
if (const VPInstruction *CBI = dyn_cast<VPInstruction>(CBV)) {
CBI->printAsOperand(OS);
OS << " (" << DOT::EscapeString(CBI->getParent()->getName()) << ")\\l\"";
- } else
+ } else {
CBV->printAsOperand(OS);
+ OS << "\"";
+ }
}
bumpIndent(-2);
More information about the llvm-commits
mailing list