[CSE] Ask DominanceInfo about "hasSSADominance" instead of reconstructing it.
authorChris Lattner <clattner@nondot.org>
Tue, 1 Jun 2021 22:15:28 +0000 (15:15 -0700)
committerChris Lattner <clattner@nondot.org>
Tue, 1 Jun 2021 22:16:23 +0000 (15:16 -0700)
commit6134231a78bf667a2f4357a415fac11e2732405a
tree27141c3d65de0838018e35de95e0b76884ea7188
parentaeae3e0ba9061a40209987d6256e489146c2bffb
[CSE] Ask DominanceInfo about "hasSSADominance" instead of reconstructing it.

I backed this off to make the previous patch easier to wrangle, but now
this is an efficient query and it is better to not replace it in CSE.

Differential Revision: https://reviews.llvm.org/D103494
mlir/lib/Transforms/CSE.cpp