This patch refactors the Mem2Reg infrastructure. It decouples analysis from promotion, allowing for more control over the execution of the logic. It also adjusts the interfaces to be less coupled to mem2reg and more general. This will be useful for an upcoming revision introducing generic SROA. This commit revertsf333977eb2and relands91cff8a718. The original commit was reverted accidentally due to a misinterpretation of a bazel build bot failure. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D149825
479 B
479 B