[llvm] a094ad0 - [NFC] Fix typos in X86CmovConversion

Sotiris Apostolakis via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 08:19:17 PDT 2022


Author: Sotiris Apostolakis
Date: 2022-05-19T15:13:11Z
New Revision: a094ad03f341427af6578661fbe19181f032795a

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

LOG: [NFC] Fix typos in X86CmovConversion

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86CmovConversion.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86CmovConversion.cpp b/llvm/lib/Target/X86/X86CmovConversion.cpp
index 499eca959c8c2..f32891552a820 100644
--- a/llvm/lib/Target/X86/X86CmovConversion.cpp
+++ b/llvm/lib/Target/X86/X86CmovConversion.cpp
@@ -210,7 +210,7 @@ bool X86CmovConverterPass::runOnMachineFunction(MachineFunction &MF) {
   //===--------------------------------------------------------------------===//
   // Register-operand Conversion Algorithm
   // ---------
-  //   For each inner most loop
+  //   For each innermost loop
   //     collectCmovCandidates() {
   //       Find all CMOV-group-candidates.
   //     }
@@ -239,7 +239,7 @@ bool X86CmovConverterPass::runOnMachineFunction(MachineFunction &MF) {
       Loops.push_back(Child);
 
   for (MachineLoop *CurrLoop : Loops) {
-    // Optimize only inner most loops.
+    // Optimize only innermost loops.
     if (!CurrLoop->getSubLoops().empty())
       continue;
 
@@ -529,7 +529,7 @@ bool X86CmovConverterPass::checkForProfitableCmovCandidates(
   //===--------------------------------------------------------------------===//
   // Step 3: Check for each CMOV-group-candidate if it worth to be optimized.
   // Worth-Optimize-Group:
-  //   Iff it worths to optimize all CMOV instructions in the group.
+  //   Iff it is worth to optimize all CMOV instructions in the group.
   //
   // Worth-Optimize-CMOV:
   //   Predicted branch is faster than CMOV by the 
diff erence between depth of


        


More information about the llvm-commits mailing list