Skip to content

Commit 1c2e217

Browse files
author
Tommy McMichen
committed
[llvm][sroa] Added pass-through handling for launder/strip invariant group intrinsic in AggLoadStoreRewriter
1 parent 059b1bb commit 1c2e217

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4261,6 +4261,12 @@ class AggLoadStoreRewriter : public InstVisitor<AggLoadStoreRewriter, bool> {
42614261
enqueueUsers(SI);
42624262
return false;
42634263
}
4264+
4265+
bool visitIntrinsicInst(IntrinsicInst &II) {
4266+
if (II.isLaunderOrStripInvariantGroup())
4267+
enqueueUsers(II);
4268+
return false;
4269+
}
42644270
};
42654271

42664272
} // end anonymous namespace

0 commit comments

Comments
 (0)