[llvm] [SROA] Conservatively do not split the alloca if ptr is laundered (PR #107557)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 09:03:48 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;
----------------
antoniofrighetto wrote:
We should, I accidentally thought that reusing it would suffice.
https://github.com/llvm/llvm-project/pull/107557
More information about the llvm-commits
mailing list