[NFC][SimplifyCFG] Update documentation comments for SinkCommonCodeFromPredecessors...
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 5 May 2021 17:34:43 +0000 (20:34 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 5 May 2021 17:34:59 +0000 (20:34 +0300)
llvm/lib/Transforms/Utils/SimplifyCFG.cpp

index 7e2b32f..be108c0 100644 (file)
@@ -1956,13 +1956,11 @@ namespace {
 
 /// Check whether BB's predecessors end with unconditional branches. If it is
 /// true, sink any common code from the predecessors to BB.
-/// We also allow one predecessor to end with conditional branch (but no more
-/// than one).
 static bool SinkCommonCodeFromPredecessors(BasicBlock *BB,
                                            DomTreeUpdater *DTU) {
   // We support two situations:
   //   (1) all incoming arcs are unconditional
-  //   (2) one incoming arc is conditional
+  //   (2) there are non-unconditional incoming arcs
   //
   // (2) is very common in switch defaults and
   // else-if patterns;