[llvm] f81193d - [SelectionDAG] Remove obsolete comments (NFC) (#138483)
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 5 10:08:23 PDT 2025
Author: Kazu Hirata
Date: 2025-05-05T10:08:19-07:00
New Revision: f81193ddfdae8fbdc6e2b4a40c5b8a11c9327939
URL: https://github.com/llvm/llvm-project/commit/f81193ddfdae8fbdc6e2b4a40c5b8a11c9327939
DIFF: https://github.com/llvm/llvm-project/commit/f81193ddfdae8fbdc6e2b4a40c5b8a11c9327939.diff
LOG: [SelectionDAG] Remove obsolete comments (NFC) (#138483)
These functions do not return boolean values.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
index 30f65bde142d2..0a6ee1613b6bf 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
@@ -80,16 +80,10 @@ class ScheduleDAGFast : public ScheduleDAGSDNodes {
void Schedule() override;
/// AddPred - adds a predecessor edge to SUnit SU.
- /// This returns true if this is a new predecessor.
- void AddPred(SUnit *SU, const SDep &D) {
- SU->addPred(D);
- }
+ void AddPred(SUnit *SU, const SDep &D) { SU->addPred(D); }
/// RemovePred - removes a predecessor edge from SUnit SU.
- /// This returns true if an edge was removed.
- void RemovePred(SUnit *SU, const SDep &D) {
- SU->removePred(D);
- }
+ void RemovePred(SUnit *SU, const SDep &D) { SU->removePred(D); }
private:
void ReleasePred(SUnit *SU, SDep *PredEdge);
More information about the llvm-commits
mailing list