summaryrefslogtreecommitdiff
path: root/lib/CodeGen/EarlyIfConversion.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-07-04 01:09:45 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-07-04 01:09:45 +0000
commit00f43076a3d9cc76ef4736cf3e7215e19b05f6d5 (patch)
tree6187261d7a40d6f2ae1fd445d487486436a6c42a /lib/CodeGen/EarlyIfConversion.cpp
parent59bde4d8a1065d3c48c5ea94a570b2c4d2f294a8 (diff)
downloadllvm-00f43076a3d9cc76ef4736cf3e7215e19b05f6d5.tar.gz
llvm-00f43076a3d9cc76ef4736cf3e7215e19b05f6d5.tar.bz2
llvm-00f43076a3d9cc76ef4736cf3e7215e19b05f6d5.tar.xz
Fix some ascii art in a comment to not have trailing backslashes (inspiration
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
Diffstat (limited to 'lib/CodeGen/EarlyIfConversion.cpp')
-rw-r--r--lib/CodeGen/EarlyIfConversion.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/EarlyIfConversion.cpp b/lib/CodeGen/EarlyIfConversion.cpp
index e4c7ceb547..f575b249aa 100644
--- a/lib/CodeGen/EarlyIfConversion.cpp
+++ b/lib/CodeGen/EarlyIfConversion.cpp
@@ -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 {