[PATCH] D48974: [DomTreeUpdater] Ignore updates when both DT and PDT are nullptrs

Chijun Sima via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 5 08:03:47 PDT 2018


NutshellySima created this revision.
NutshellySima added reviewers: dmgreen, davide, kuhar, brzycki, grosser.
Herald added a subscriber: llvm-commits.

Previously, when both DT and PDT are nullptrs and the UpdateStrategy is Lazy, DomTreeUpdater still pends updates inside.
After this patch, DomTreeUpdater will ignore all updates from(`applyUpdates()/insertEdge*()/deleteEdge*()`) in this case. (call `delBB()` still pends BasicBlock deletion until a flush event according to the doc).
The behavior of DomTreeUpdater previously documented won't change after the patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D48974

Files:
  include/llvm/IR/DomTreeUpdater.h
  lib/IR/DomTreeUpdater.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48974.154240.patch
Type: text/x-patch
Size: 5646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180705/e76118c0/attachment.bin>


More information about the llvm-commits mailing list