DomTree: remove explicit use of DomTreeNodeBase::iterator
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 2 Jul 2020 18:36:30 +0000 (20:36 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 8 Jul 2020 16:18:49 +0000 (18:18 +0200)
commit3fa989d4fd6b854209ba4e950d96b91d6d5797b4
tree0c85e7f66fdd786c5c6b64ee0498c32d6acad6c6
parentbf9a940c3f1b460420b1106fe5b1565fd60be5a2
DomTree: remove explicit use of DomTreeNodeBase::iterator

Summary:
Almost all uses of these iterators, including implicit ones, really
only need the const variant (as it should be). The only exception is
in NewGVN, which changes the order of dominator tree child nodes.

Change-Id: I4b5bd71e32d71b0c67b03d4927d93fe9413726d4

Reviewers: arsenm, RKSimon, mehdi_amini, courbet, rriddle, aartbik

Subscribers: wdng, Prazek, hiraditya, kuhar, rogfer01, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, vkmr, Kayjukh, jurahul, msifontes, cfe-commits, llvm-commits

Tags: #clang, #mlir, #llvm

Differential Revision: https://reviews.llvm.org/D83087
clang/include/clang/Analysis/Analyses/Dominators.h
llvm/include/llvm/CodeGen/MachineDominators.h
llvm/include/llvm/IR/Dominators.h
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
llvm/lib/Transforms/Scalar/Sink.cpp
llvm/lib/Transforms/Vectorize/VPlanDominatorTree.h
mlir/include/mlir/IR/Dominance.h
mlir/lib/Transforms/CSE.cpp