[llvm] [llvm] Fix Typos in AssumeBundleQueries (PR #75429)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 00:51:23 PST 2023


https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/75429

>From 362920ae4de04c2d8d7bb932b7a552101fe266e7 Mon Sep 17 00:00:00 2001
From: knightXun <badgangkiller at gmail.com>
Date: Thu, 14 Dec 2023 13:51:43 +0800
Subject: [PATCH] [llvm] Fix Typos in AssumeBundleQueries and AssumptionCache

---
 llvm/lib/Analysis/AssumeBundleQueries.cpp | 7 +++----
 llvm/lib/Analysis/AssumptionCache.cpp     | 4 ++--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/llvm/lib/Analysis/AssumeBundleQueries.cpp b/llvm/lib/Analysis/AssumeBundleQueries.cpp
index 21530693c5f180..c538ec38333a0e 100644
--- a/llvm/lib/Analysis/AssumeBundleQueries.cpp
+++ b/llvm/lib/Analysis/AssumeBundleQueries.cpp
@@ -21,10 +21,9 @@
 using namespace llvm;
 using namespace llvm::PatternMatch;
 
-STATISTIC(NumAssumeQueries, "Number of Queries into an assume assume bundles");
-STATISTIC(
-    NumUsefullAssumeQueries,
-    "Number of Queries into an assume assume bundles that were satisfied");
+STATISTIC(NumAssumeQueries, "Number of Queries into an assume bundles");
+STATISTIC(NumUsefullAssumeQueries,
+          "Number of Queries into an assume bundles that were satisfied");
 
 DEBUG_COUNTER(AssumeQueryCounter, "assume-queries-counter",
               "Controls which assumes gets created");
diff --git a/llvm/lib/Analysis/AssumptionCache.cpp b/llvm/lib/Analysis/AssumptionCache.cpp
index fb3a6f8de2d6ac..1f7f14f915a30a 100644
--- a/llvm/lib/Analysis/AssumptionCache.cpp
+++ b/llvm/lib/Analysis/AssumptionCache.cpp
@@ -43,8 +43,8 @@ static cl::opt<bool>
 
 SmallVector<AssumptionCache::ResultElem, 1> &
 AssumptionCache::getOrInsertAffectedValues(Value *V) {
-  // Try using find_as first to avoid creating extra value handles just for the
-  // purpose of doing the lookup.
+  // Attempting to use find_as first to avoid creating extra value handles just
+  // for the purpose of doing the lookup.
   auto AVI = AffectedValues.find_as(V);
   if (AVI != AffectedValues.end())
     return AVI->second;



More information about the llvm-commits mailing list