[PATCH] D48202: Generalize MergeBlockIntoPredecessor. Replace uses of MergeBasicBlockIntoOnlyPred.

Alina Sbirlea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 13:40:37 PDT 2019


asbirlea added a comment.

Am I right that there is yet another method doing the same thing?
`lib/Transforms/Utils/LoopUnroll.cpp:foldBlockIntoPredecessor`

  /// Folds a basic block into its predecessor if it only has one predecessor, and
  /// that predecessor only has one successor.
  /// The LoopInfo Analysis that is passed will be kept consistent.
  BasicBlock *llvm::foldBlockIntoPredecessor(BasicBlock *BB, LoopInfo *LI,
                                             ScalarEvolution *SE,
                                             DominatorTree *DT) {


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D48202/new/

https://reviews.llvm.org/D48202





More information about the llvm-commits mailing list