[CodeGen][DwarfEHPrepare] Preserve Dominator Tree
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 28 Jan 2021 10:45:53 +0000 (13:45 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 28 Jan 2021 11:11:34 +0000 (14:11 +0300)
commit6617529a1dfe6605bd2b4064c7832ace4b0eb564
treef8734d82002becbbff5aa7f98b531216b07c2981
parent8cfa963463d09cd4213a647f3587389612e3dd16
[CodeGen][DwarfEHPrepare] Preserve Dominator Tree

Now that D94827 has flipped the switch, and SimplifyCFG is officially marked
as production-ready regarding Dominator Tree preservation,
we can update this user pass to also preserve Dominator Tree.

This is a geomean compile-time win of `-0.05%`..`-0.08%`.
https://llvm-compile-time-tracker.com/compare.php?from=51a25846c198cff00abad0936f975167357afa6f&to=082499aac236a5c141e50a9e77870d5be2de5f0b&stat=instructions

Differential Revision: https://reviews.llvm.org/D95548
llvm/lib/CodeGen/DwarfEHPrepare.cpp
llvm/test/CodeGen/ARM/O3-pipeline.ll
llvm/test/CodeGen/X86/opt-pipeline.ll