[llvm] b73d79f - [RISCV] Fix typo in comment. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 14:16:00 PST 2023
Author: Craig Topper
Date: 2023-12-04T14:15:49-08:00
New Revision: b73d79fda85b26fc111c47fe292d94d46b925754
URL: https://github.com/llvm/llvm-project/commit/b73d79fda85b26fc111c47fe292d94d46b925754
DIFF: https://github.com/llvm/llvm-project/commit/b73d79fda85b26fc111c47fe292d94d46b925754.diff
LOG: [RISCV] Fix typo in comment. NFC
This should say "Assume that VL output is <= 65536".
Added:
Modified:
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 8e7f0c6b81030..1f09d912f7339 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -1563,7 +1563,7 @@ static void computeKnownBitsFromOperator(const Operator *I,
break;
case Intrinsic::riscv_vsetvli:
case Intrinsic::riscv_vsetvlimax:
- // Assume that VL output is >= 65536.
+ // Assume that VL output is <= 65536.
// TODO: Take SEW and LMUL into account.
if (BitWidth > 17)
Known.Zero.setBitsFrom(17);
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 4ad2689328581..72de6d1807989 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -15948,7 +15948,7 @@ void RISCVTargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
break;
case Intrinsic::riscv_vsetvli:
case Intrinsic::riscv_vsetvlimax:
- // Assume that VL output is >= 65536.
+ // Assume that VL output is <= 65536.
// TODO: Take SEW and LMUL into account.
if (BitWidth > 17)
Known.Zero.setBitsFrom(17);
More information about the llvm-commits
mailing list