[VPlan] Fix CondBit quoting in dumpBasicBlock
authorRenato Golin <renato.golin@linaro.org>
Wed, 10 Oct 2018 17:55:21 +0000 (17:55 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 10 Oct 2018 17:55:21 +0000 (17:55 +0000)
Quotes were being printed for VPInstructions but not the rest.

llvm-svn: 344161

llvm/lib/Transforms/Vectorize/VPlan.cpp

index 09d20fb..39cb4e9 100644 (file)
@@ -543,8 +543,10 @@ void VPlanPrinter::dumpBasicBlock(const VPBasicBlock *BasicBlock) {
     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);