[PATCH] D70030: [MachineBlockPlacement] Update UnscheduledPredecessors when tail duplicate delete a block.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 15:32:40 PST 2019


huihuiz marked an inline comment as done.
huihuiz added a comment.

Just realize I forget to mention how the BB is removed.



================
Comment at: llvm/lib/CodeGen/MachineBlockPlacement.cpp:2907
         bool InWorkList = true;
         // Remove from the Chain and Chain Map
         if (BlockToChain.count(RemBB)) {
----------------
This is the logic where BB is removed from the Chain and Chain Map. It's called in TailDuplicator::tailDuplicateAndUpdate(), when BB is dead and tailduplicator decides to removed it (removeDeadBlock). 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70030





More information about the llvm-commits mailing list