[llvm-commits] [llvm] r159699 - /llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp

Matt Beaumont-Gay matthewbg at google.com
Tue Jul 3 18:09:45 PDT 2012


Author: matthewbg
Date: Tue Jul  3 20:09:45 2012
New Revision: 159699

URL: http://llvm.org/viewvc/llvm-project?rev=159699&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp

Modified: llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp?rev=159699&r1=159698&r2=159699&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp (original)
+++ llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp Tue Jul  3 20:09:45 2012
@@ -52,21 +52,21 @@
 //===----------------------------------------------------------------------===//
 //
 // 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 {





More information about the llvm-commits mailing list