[llvm] 12d04ce - [NFC] [Coroutines] Remove unused CoroFree
Chuanqi Xu via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 14 04:13:26 PDT 2021
Author: Chuanqi Xu
Date: 2021-07-14T19:13:12+08:00
New Revision: 12d04ce9569edec68220888e02aab4fc25e55e01
URL: https://github.com/llvm/llvm-project/commit/12d04ce9569edec68220888e02aab4fc25e55e01
DIFF: https://github.com/llvm/llvm-project/commit/12d04ce9569edec68220888e02aab4fc25e55e01.diff
LOG: [NFC] [Coroutines] Remove unused CoroFree
Added:
Modified:
llvm/lib/Transforms/Coroutines/CoroElide.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Coroutines/CoroElide.cpp b/llvm/lib/Transforms/Coroutines/CoroElide.cpp
index 18bd56c45de19..d35a5de6d4bd2 100644
--- a/llvm/lib/Transforms/Coroutines/CoroElide.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroElide.cpp
@@ -32,7 +32,6 @@ struct Lowerer : coro::LowererBase {
SmallVector<CoroAllocInst *, 1> CoroAllocs;
SmallVector<CoroSubFnInst *, 4> ResumeAddr;
DenseMap<CoroBeginInst *, SmallVector<CoroSubFnInst *, 4>> DestroyAddr;
- SmallVector<CoroFreeInst *, 1> CoroFrees;
SmallPtrSet<const SwitchInst *, 4> CoroSuspendSwitches;
Lowerer(Module &M) : LowererBase(M) {}
@@ -290,7 +289,6 @@ bool Lowerer::processCoroId(CoroIdInst *CoroId, AAResults &AA,
DominatorTree &DT) {
CoroBegins.clear();
CoroAllocs.clear();
- CoroFrees.clear();
ResumeAddr.clear();
DestroyAddr.clear();
@@ -300,8 +298,6 @@ bool Lowerer::processCoroId(CoroIdInst *CoroId, AAResults &AA,
CoroBegins.push_back(CB);
else if (auto *CA = dyn_cast<CoroAllocInst>(U))
CoroAllocs.push_back(CA);
- else if (auto *CF = dyn_cast<CoroFreeInst>(U))
- CoroFrees.push_back(CF);
}
// Collect all coro.subfn.addrs associated with coro.begin.
More information about the llvm-commits
mailing list