[CodeGen] SafeStack: preserve DominatorTree if it is avaliable
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 27 Jan 2021 14:13:10 +0000 (17:13 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 27 Jan 2021 15:32:35 +0000 (18:32 +0300)
commit51a25846c198cff00abad0936f975167357afa6f
tree090831097b9df97c7cb22da831d0314660442187
parent4de3bdd65fb1d8efe6e100b343b076e7ea9840c8
[CodeGen] SafeStack: preserve DominatorTree if it is avaliable

While this is mostly NFC right now, because only ARM happens
to run this pass with DomTree available before it,
and required after it, more backends will be affected once
the SimplifyCFG's switch for domtree preservation is flipped,
and DwarfEHPrepare also preserves the domtree.
llvm/lib/CodeGen/SafeStack.cpp
llvm/test/CodeGen/ARM/O3-pipeline.ll