[llvm] 78e35e4 - [ValueTracking] Fix typo in `isKnownNegative` and `MaskedValueIsZero` NFC. (#118438)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 01:14:59 PST 2024
Author: Yingwei Zheng
Date: 2024-12-03T17:14:55+08:00
New Revision: 78e35e4c0eea6c2f8184f7b98e6a385e981512db
URL: https://github.com/llvm/llvm-project/commit/78e35e4c0eea6c2f8184f7b98e6a385e981512db
DIFF: https://github.com/llvm/llvm-project/commit/78e35e4c0eea6c2f8184f7b98e6a385e981512db.diff
LOG: [ValueTracking] Fix typo in `isKnownNegative` and `MaskedValueIsZero` NFC. (#118438)
Fix typos introduced by
https://github.com/llvm/llvm-project/commit/d9e8ae7d2f74fff629a8be10835677ce8039d452
and
https://github.com/llvm/llvm-project/commit/42b6c8ed3ae44ed61af5ba81bdaa5b81a9ce61ad.
Added:
Modified:
llvm/include/llvm/Analysis/ValueTracking.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/ValueTracking.h b/llvm/include/llvm/Analysis/ValueTracking.h
index bd74d27e0c49b1..c408e0a39cd18b 100644
--- a/llvm/include/llvm/Analysis/ValueTracking.h
+++ b/llvm/include/llvm/Analysis/ValueTracking.h
@@ -159,7 +159,7 @@ bool isKnownPositive(const Value *V, const SimplifyQuery &SQ,
/// Returns true if the given value is known be negative (i.e. non-positive
/// and non-zero).
-bool isKnownNegative(const Value *V, const SimplifyQuery &DL,
+bool isKnownNegative(const Value *V, const SimplifyQuery &SQ,
unsigned Depth = 0);
/// Return true if the given values are known to be non-equal when defined.
@@ -180,7 +180,7 @@ bool isKnownNonEqual(const Value *V1, const Value *V2, const DataLayout &DL,
/// same width as the vector element, and the bit is set only if it is true
/// for all of the elements in the vector.
bool MaskedValueIsZero(const Value *V, const APInt &Mask,
- const SimplifyQuery &DL, unsigned Depth = 0);
+ const SimplifyQuery &SQ, unsigned Depth = 0);
/// Return the number of times the sign bit of the register is replicated into
/// the other bits. We know that at least 1 bit is always equal to the sign
More information about the llvm-commits
mailing list