diff --git a/llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp b/llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp index 7d18b07698d6b..dfa3d0ee73322 100644 --- a/llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp +++ b/llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp @@ -94,7 +94,7 @@ TEST_F(VPlanHCFGTest, testBuildHCFGInnerLoop) { Plan->addVPValue(&*F->arg_begin()); std::string FullDump; raw_string_ostream(FullDump) << *Plan; - EXPECT_EQ(R"(digraph VPlan { + const char *ExpectedStr = R"(digraph VPlan { graph [labelloc=t, fontsize=30; label="Vectorization Plan"] node [shape=rect, fontname=Courier, fontsize=30] edge [fontname=Courier, fontsize=30] @@ -125,8 +125,8 @@ compound=true ] } } -)", - FullDump); +)"; + EXPECT_EQ(ExpectedStr, FullDump); LoopVectorizationLegality::InductionList Inductions; SmallPtrSet DeadInstructions; diff --git a/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp b/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp index ce0e0017fa85e..73e01fade9a97 100644 --- a/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp +++ b/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp @@ -209,7 +209,7 @@ TEST(VPBasicBlockTest, print) { std::string FullDump; raw_string_ostream(FullDump) << Plan; - EXPECT_EQ(R"(digraph VPlan { + const char *ExpectedStr = R"(digraph VPlan { graph [labelloc=t, fontsize=30; label="Vectorization Plan"] node [shape=rect, fontname=Courier, fontsize=30] edge [fontname=Courier, fontsize=30] @@ -227,8 +227,8 @@ compound=true "EMIT ret vp<%2>\l" ] } -)", - FullDump); +)"; + EXPECT_EQ(ExpectedStr, FullDump); { std::string I3Dump;