[llvm] [SROA] Conservatively do not split the alloca if ptr is laundered (PR #107557)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 06:03:40 PDT 2024
================
@@ -3522,6 +3522,10 @@ class AllocaSliceRewriter : public InstVisitor<AllocaSliceRewriter, bool> {
"Unexpected intrinsic!");
LLVM_DEBUG(dbgs() << " original: " << II << "\n");
+ // Do not record invariant group intrinsics for deletion.
+ if (II.isLaunderOrStripInvariantGroup())
+ return true;
----------------
nikic wrote:
Hm, shouldn't we be creating a new intrinsic for the split pointer instead?
https://github.com/llvm/llvm-project/pull/107557
More information about the llvm-commits
mailing list