From 8048005739ebf6734b2d841a528c06595062f899 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Wed, 5 May 2021 20:34:43 +0300 Subject: [PATCH] [NFC][SimplifyCFG] Update documentation comments for SinkCommonCodeFromPredecessors() after 1886aad --- llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 7e2b32f..be108c0 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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; -- 2.7.4