[PATCH] D56810: [Mem2Reg] Enable promotion for bitcastable load/store values

Sergey Dmitriev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 16 15:50:49 PST 2019


sdmitriev added a comment.

I am changing PromoteMemToReg function which can be called from other places besides mem2reg pass, so this change is not limited to mem2reg pass only. Regarding SROA, it does not handle alloca instructions outside of function entry block. We need to create allocas outside of entry in some cases and the use of PromoteMemToReg() seems to be the only option for registerizing them.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56810/new/

https://reviews.llvm.org/D56810





More information about the llvm-commits mailing list