[llvm] ebefe83 - [NFC] Fix spelling 'constanst' -> 'constants'
Fraser Cormack via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 20 07:33:49 PDT 2023
Author: Fraser Cormack
Date: 2023-09-20T15:33:03+01:00
New Revision: ebefe83c092e41d243829ab812bb650674e2f3d2
URL: https://github.com/llvm/llvm-project/commit/ebefe83c092e41d243829ab812bb650674e2f3d2
DIFF: https://github.com/llvm/llvm-project/commit/ebefe83c092e41d243829ab812bb650674e2f3d2.diff
LOG: [NFC] Fix spelling 'constanst' -> 'constants'
Added:
Modified:
llvm/include/llvm/IR/Value.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/Value.h b/llvm/include/llvm/IR/Value.h
index 16ae451114b52f1..bc8284c068d0ed1 100644
--- a/llvm/include/llvm/IR/Value.h
+++ b/llvm/include/llvm/IR/Value.h
@@ -242,7 +242,7 @@ class Value {
///
/// This is useful when you just want to print 'int %reg126', not the
/// instruction that generated it. If you specify a Module for context, then
- /// even constanst get pretty-printed; for example, the type of a null
+ /// even constants get pretty-printed; for example, the type of a null
/// pointer is printed symbolically.
/// @{
void printAsOperand(raw_ostream &O, bool PrintType = true,
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index db1ebe0e26b9a29..5088d59147492f1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -10286,7 +10286,7 @@ SDValue DAGCombiner::visitSRA(SDNode *N) {
// If truncate is free for the target sext(shl) is likely to result in better
// code.
if (N0.getOpcode() == ISD::SHL && N1C) {
- // Get the two constanst of the shifts, CN0 = m, CN = n.
+ // Get the two constants of the shifts, CN0 = m, CN = n.
const ConstantSDNode *N01C = isConstOrConstSplat(N0.getOperand(1));
if (N01C) {
LLVMContext &Ctx = *DAG.getContext();
More information about the llvm-commits
mailing list