Mark CFG as preserved in TypePromotion and InterleaveAccess passes
authorDavid Green <david.green@arm.com>
Wed, 22 Sep 2021 17:58:00 +0000 (18:58 +0100)
committerDavid Green <david.green@arm.com>
Wed, 22 Sep 2021 17:58:00 +0000 (18:58 +0100)
commitc49611f9097899e51a91ddc71eb295486f5271ea
tree7f02267af885aa7ea0505cf330e1074f7428caa1
parent97b2f20a446e54f4354d8f950dfab62c37e6ddf4
Mark CFG as preserved in TypePromotion and InterleaveAccess passes

Neither of these passes modify the CFG, allowing us to preserve DomTree
and LoopInfo across them by using setPreservesCFG.

Differential Revision: https://reviews.llvm.org/D110161
llvm/lib/CodeGen/InterleavedAccessPass.cpp
llvm/lib/CodeGen/TypePromotion.cpp
llvm/test/CodeGen/ARM/O3-pipeline.ll