[PATCH] D124967: [SROA] Avoid postponing rewriting load/store by ignoring lifetime intrinsics in partition's promotability checking

Dmitry Vassiliev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 13 12:03:19 PDT 2022


slydiman added a comment.

Why do you think the results of SROA should be the same with an without lifetime intrinsics?

The precommited tests, you asked for above, contradict this statement, and demonstrate that lifetime intrinsics help with the optimization.

The problem with the current implementation is that the first element is not handled properly, fixing which is the subject of this patch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124967



More information about the llvm-commits mailing list