Skip to content

Commit b82baf0

Browse files
[llvm] Remove redundant control flow statements (NFC) (#163509)
1 parent e07cd23 commit b82baf0

File tree

5 files changed

+1
-7
lines changed

5 files changed

+1
-7
lines changed

llvm/include/llvm/Analysis/IR2Vec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ class Embedder {
575575
/// cached embeddings should be invalidated to ensure
576576
/// correctness/recomputation. This is a no-op for SymbolicEmbedder but
577577
/// removes all the cached entries in FlowAwareEmbedder.
578-
virtual void invalidateEmbeddings() { return; }
578+
virtual void invalidateEmbeddings() {}
579579
};
580580

581581
/// Class for computing the Symbolic embeddings of IR2Vec.

llvm/lib/CAS/OnDiskTrieRawHashMap.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,8 +1102,6 @@ void TrieRawHashMapHandle::print(
11021102

11031103
if (auto Err = Printer.printRecords())
11041104
OS << "error: " << toString(std::move(Err)) << "\n";
1105-
1106-
return;
11071105
}
11081106

11091107
Error TrieRawHashMapHandle::validate(

llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,6 @@ void SIPreEmitPeephole::collectUnpackingCandidates(
654654
if (TotalCyclesBetweenCandidates < NumMFMACycles - 1)
655655
InstrsToUnpack.insert(&Instr);
656656
}
657-
return;
658657
}
659658

660659
void SIPreEmitPeephole::performF32Unpacking(MachineInstr &I) {
@@ -681,7 +680,6 @@ void SIPreEmitPeephole::performF32Unpacking(MachineInstr &I) {
681680
HiDstOp.setIsRenamable(DstOp.isRenamable());
682681

683682
I.eraseFromParent();
684-
return;
685683
}
686684

687685
MachineInstrBuilder SIPreEmitPeephole::createUnpackedMI(MachineInstr &I,

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3765,7 +3765,6 @@ void SPIRVInstructionSelector::decorateUsesAsNonUniform(
37653765
SPIRV::Decoration::NonUniformEXT, {});
37663766
}
37673767
}
3768-
return;
37693768
}
37703769

37713770
bool SPIRVInstructionSelector::extractSubvector(

llvm/lib/Transforms/Utils/LoopUnroll.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,6 @@ llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
11061106
}
11071107

11081108
Phi.replaceAllUsesWith(RdxResult);
1109-
continue;
11101109
}
11111110
}
11121111

0 commit comments

Comments
 (0)