[llvm] 2214e02 - [RISCV] Fix typos in RISCVVLOptimizer.cpp. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 11:24:32 PST 2024


Author: Craig Topper
Date: 2024-12-05T11:17:55-08:00
New Revision: 2214e02378185cec51eedb68c028342c8c19740b

URL: https://github.com/llvm/llvm-project/commit/2214e02378185cec51eedb68c028342c8c19740b
DIFF: https://github.com/llvm/llvm-project/commit/2214e02378185cec51eedb68c028342c8c19740b.diff

LOG: [RISCV] Fix typos in RISCVVLOptimizer.cpp. NFC

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp b/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
index cbe75929e1f59a..d4c1dd7dc549bf 100644
--- a/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
+++ b/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
@@ -660,7 +660,7 @@ bool RISCVVLOptimizer::isCandidate(const MachineInstr &MI) const {
   // If we're not using VLMAX, then we need to be careful whether we are using
   // TA/TU when there is a non-undef Passthru. But when we are using VLMAX, it
   // does not matter whether we are using TA/TU with a non-undef Passthru, since
-  // there are no tail elements to be perserved.
+  // there are no tail elements to be preserved.
   unsigned VLOpNum = RISCVII::getVLOpNum(Desc);
   const MachineOperand &VLOp = MI.getOperand(VLOpNum);
   if (VLOp.isReg() || VLOp.getImm() != RISCV::VLMaxSentinel) {
@@ -693,7 +693,7 @@ bool RISCVVLOptimizer::isCandidate(const MachineInstr &MI) const {
   // lower lanes using data from higher lanes. There may be other complex
   // semantics not mentioned here that make it hard to determine whether
   // the VL can be optimized. As a result, a white-list of supported
-  // instructions is used. Over time, more instructions cam be supported
+  // instructions is used. Over time, more instructions can be supported
   // upon careful examination of their semantics under the logic in this
   // optimization.
   // TODO: Use a better approach than a white-list, such as adding


        


More information about the llvm-commits mailing list