Index: lib/Transforms/Scalar/MergedLoadStoreMotion.cpp =================================================================== --- lib/Transforms/Scalar/MergedLoadStoreMotion.cpp +++ lib/Transforms/Scalar/MergedLoadStoreMotion.cpp @@ -27,18 +27,18 @@ // // header: // br %cond, label %if.then, label %if.else -// / \ -// / \ -// / \ +// + + +// + + +// + + // if.then: if.else: // %lt = load %addr_l %le = load %addr_l // // <...> <...> // store %st, %addr_s store %se, %addr_s // br label %if.end br label %if.end -// \ / -// \ / -// \ / +// + + +// + + +// + + // if.end ("footer"): // <...> // @@ -47,16 +47,16 @@ // header: // %l = load %addr_l // br %cond, label %if.then, label %if.else -// / \ -// / \ -// / \ +// + + +// + + +// + + // if.then: if.else: // // <...> <...> // br label %if.end br label %if.end -// \ / -// \ / -// \ / +// + + +// + + +// + + // if.end ("footer"): // %s.sink = phi [%st, if.then], [%se, if.else] // <...> Index: unittests/Analysis/LazyCallGraphTest.cpp =================================================================== --- unittests/Analysis/LazyCallGraphTest.cpp +++ unittests/Analysis/LazyCallGraphTest.cpp @@ -39,21 +39,23 @@ return M; } -// IR forming a call graph with a diamond of triangle-shaped SCCs: -// -// d1 -// / \ -// d3--d2 -// / \ -// b1 c1 -// / \ / \ -// b3--b2 c3--c2 -// \ / -// a1 -// / \ -// a3--a2 -// -// All call edges go up between SCCs, and clockwise around the SCC. +/* + IR forming a call graph with a diamond of triangle-shaped SCCs: + + d1 + / \ + d3--d2 + / \ + b1 c1 + / \ / \ + b3--b2 c3--c2 + \ / + a1 + / \ + a3--a2 + + All call edges go up between SCCs, and clockwise around the SCC. + */ static const char DiamondOfTriangles[] = "define void @a1() {\n" "entry:\n"