[DomTree] Extend update API to allow a post CFG view.
commitf55ad3973dec62b1dd6dbe9c4eb81c5e883e3628
authorAlina Sbirlea <asbirlea@google.com>
Wed, 26 Feb 2020 21:33:02 +0000 (26 13:33 -0800)
committerAlina Sbirlea <asbirlea@google.com>
Sat, 22 Aug 2020 00:23:08 +0000 (21 17:23 -0700)
tree9b3c5238f894c5d0f14552c4f19f5eabc31e677c
parent72ddaedddafc26b5671d56d71b1bccf7f46f65b4
[DomTree] Extend update API to allow a post CFG view.

Extend the `applyUpdates` in DominatorTree to allow a post CFG view,
different from the current CFG.
This patch implements the functionality of updating an already up to
date DT, to the desired PostCFGView.
Combining a set of updates towards an up to date DT and a PostCFGView is
not yet supported.

Differential Revision: https://reviews.llvm.org/D85472
llvm/include/llvm/IR/Dominators.h
llvm/include/llvm/Support/GenericDomTree.h
llvm/include/llvm/Support/GenericDomTreeConstruction.h
llvm/lib/Analysis/MemorySSAUpdater.cpp
llvm/lib/IR/Dominators.cpp