Skip to content

Commit 1b3eaac

Browse files
[llvm] Remove unused local variables (NFC) (#167185)
Identified with bugprone-unused-local-non-trivial-variable.
1 parent 5361e10 commit 1b3eaac

File tree

4 files changed

+0
-7
lines changed

4 files changed

+0
-7
lines changed

llvm/lib/ExecutionEngine/Orc/TargetProcess/SimpleExecutorMemoryManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ Expected<ExecutorAddr> SimpleExecutorMemoryManager::reserve(uint64_t Size) {
3636

3737
Expected<ExecutorAddr>
3838
SimpleExecutorMemoryManager::initialize(tpctypes::FinalizeRequest &FR) {
39-
std::vector<shared::WrapperFunctionCall> DeallocationActions;
40-
4139
if (FR.Segments.empty()) {
4240
if (FR.Actions.empty())
4341
return make_error<StringError>("Finalization request is empty",

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5421,8 +5421,6 @@ combineUnpackingMovIntoLoad(SDNode *N, TargetLowering::DAGCombinerInfo &DCI) {
54215421
if (!NVPTX::isPackedVectorTy(ElementVT) || ElementVT == MVT::v4i8)
54225422
return SDValue();
54235423

5424-
SmallVector<SDNode *> DeadCopyToRegs;
5425-
54265424
// Check whether all outputs are either used by an extractelt or are
54275425
// glue/chain nodes
54285426
if (!all_of(N->uses(), [&](SDUse &U) {

llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,6 @@ PreservedAnalyses LoopIdiomRecognizePass::run(Loop &L, LoopAnalysisManager &AM,
303303
// but ORE cannot be preserved (see comment before the pass definition).
304304
OptimizationRemarkEmitter ORE(L.getHeader()->getParent());
305305

306-
std::optional<PolynomialInfo> HR;
307-
308306
LoopIdiomRecognize LIR(&AR.AA, &AR.DT, &AR.LI, &AR.SE, &AR.TLI, &AR.TTI,
309307
AR.MSSA, DL, ORE);
310308
if (!LIR.runOnLoop(&L))

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21222,7 +21222,6 @@ BoUpSLP::BlockScheduling::tryScheduleBundle(ArrayRef<Value *> VL, BoUpSLP *SLP,
2122221222
}
2122321223
ScheduledBundlesList.pop_back();
2122421224
SmallVector<ScheduleData *> ControlDependentMembers;
21225-
SmallPtrSet<Instruction *, 4> Visited;
2122621225
for (Value *V : VL) {
2122721226
if (S.isNonSchedulable(V))
2122821227
continue;

0 commit comments

Comments
 (0)