[llvm] [SelectionDAG] Remove obsolete comments (NFC) (PR #138483)

via llvm-commits llvm-commits at lists.llvm.org
Sun May 4 21:54:01 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-selectiondag

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

These fucntions do not return boolean values.


---
Full diff: https://github.com/llvm/llvm-project/pull/138483.diff


1 Files Affected:

- (modified) llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp (+2-8) 


``````````diff
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);

``````````

</details>


https://github.com/llvm/llvm-project/pull/138483


More information about the llvm-commits mailing list