In this patch, we traverse from each lifetime.start intrinsics, follow the control flow. If we never reach a coro.suspend before reaching a lifetime.end intrinsic for the same alloca, we can safely assume that the alloca
will not live across suspension points. This should still achieve similar effect as before but is precise and correct.
Added a test case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
clang-tidy: warning: 'auto *II' can be declared as 'const auto *II' [llvm-qualified-auto]
not useful