Fix some ascii art in a comment to not have trailing backslashes (inspiration
authorMatt Beaumont-Gay <matthewbg@google.com>
Wed, 4 Jul 2012 01:09:45 +0000 (01:09 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Wed, 4 Jul 2012 01:09:45 +0000 (01:09 +0000)
from IfConversion.cc), and fix some spelling and grammar in the surrounding
prose.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159699 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/EarlyIfConversion.cpp

index e4c7ceb5477239510eb7a90b43ed1f556033a302..f575b249aa15f1368be0ac8956e7c846131c2af4 100644 (file)
@@ -52,21 +52,21 @@ typedef SmallSetVector<MachineBasicBlock*, 8> BlockSetVector;
 //===----------------------------------------------------------------------===//
 //
 // The SSAIfConv class performs if-conversion on SSA form machine code after
-// determining if it is possible. The class contains no heuristics, external
+// determining if it is possible. The class contains no heuristics; external
 // code should be used to determine when if-conversion is a good idea.
 //
-// SSAIfConv con convert both triangles and diamonds:
+// SSAIfConv can convert both triangles and diamonds:
 //
 //   Triangle: Head              Diamond: Head
-//              | \                       /  \
-//              |  \                     /    \
+//              | \                       /  \_
+//              |  \                     /    |
 //              |  [TF]BB              FBB    TBB
 //              |  /                     \    /
 //              | /                       \  /
 //             Tail                       Tail
 //
 // Instructions in the conditional blocks TBB and/or FBB are spliced into the
-// Head block, and phis in the Tail black are converted to select instruction.
+// Head block, and phis in the Tail block are converted to select instructions.
 //
 namespace {
 class SSAIfConv {