Skip to content

Commit 13cd725

Browse files
authored
[CoroSplit] Remove lifetime marker checks for subranges of allocas (#152886)
#150248 starts to drop size argument of lifetime markers. Then lifetime markers cannot refer to subrange of allocas and we can remove this check.
1 parent f23d2ee commit 13cd725

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Transforms/Coroutines/SpillUtils.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,6 @@ struct AllocaUseVisitor : PtrUseVisitor<AllocaUseVisitor> {
264264
}
265265

266266
void visitIntrinsicInst(IntrinsicInst &II) {
267-
// When we found the lifetime markers refers to a
268-
// subrange of the original alloca, ignore the lifetime
269-
// markers to avoid misleading the analysis.
270-
if (!IsOffsetKnown || !Offset.isZero())
271-
return Base::visitIntrinsicInst(II);
272267
switch (II.getIntrinsicID()) {
273268
default:
274269
return Base::visitIntrinsicInst(II);

0 commit comments

Comments
 (0)