[llvm] Fix the doc about the returned value of DominanceFrontierBase::compare (PR #81352)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 18:30:00 PST 2024


https://github.com/bvlgah updated https://github.com/llvm/llvm-project/pull/81352

>From 32ebf07fd60626831384e3b5a82784b187da5383 Mon Sep 17 00:00:00 2001
From: bvlgah <octopus.busts_0w at icloud.com>
Date: Sat, 10 Feb 2024 16:40:33 +0800
Subject: [PATCH] Fix the doc about the returned value of
 DominanceFrontierBase::compare

---
 llvm/include/llvm/Analysis/DominanceFrontier.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/include/llvm/Analysis/DominanceFrontier.h b/llvm/include/llvm/Analysis/DominanceFrontier.h
index b65cdc9cdb3c4f..772fdc9ddee02a 100644
--- a/llvm/include/llvm/Analysis/DominanceFrontier.h
+++ b/llvm/include/llvm/Analysis/DominanceFrontier.h
@@ -101,8 +101,8 @@ class DominanceFrontierBase {
   /// return true;
   bool compareDomSet(DomSetType &DS1, const DomSetType &DS2) const;
 
-  /// compare - Return true if the other dominance frontier base matches
-  /// this dominance frontier base. Otherwise return false.
+  /// compare - Return false if the other dominance frontier base matches
+  /// this dominance frontier base. Otherwise return true.
   bool compare(DominanceFrontierBase &Other) const;
 
   /// print - Convert to human readable form



More information about the llvm-commits mailing list