[PATCH] D33800: [SelectionDAG] Update the dominator after splitting critical edges

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 14:58:46 PDT 2017


davide added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:405
   ORE = make_unique<OptimizationRemarkEmitter>(&Fn);
+  DominatorTree *DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
 
----------------
efriedma wrote:
> Can you use getAnalysisIfAvailable here?
I can indeed, updating this patch in a sec.


https://reviews.llvm.org/D33800





More information about the llvm-commits mailing list