[llvm] a42e53c - Fix typos encountered while working on pass pipeline for O1.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Tue May 12 00:46:24 PDT 2020


Author: Eric Christopher
Date: 2020-05-12T00:45:15-07:00
New Revision: a42e53cccf8da59efe634dbc8242e496aa7a2a37

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

LOG: Fix typos encountered while working on pass pipeline for O1.

Added: 
    

Modified: 
    llvm/lib/Passes/PassBuilder.cpp
    llvm/lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
    llvm/test/CodeGen/X86/2010-01-11-ExtraPHIArg.ll

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 58b2011bd8ee..7549d4aa1ef2 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -857,7 +857,7 @@ ModulePassManager PassBuilder::buildModuleSimplificationPipeline(
   // constants.
   MPM.addPass(createModuleToFunctionPassAdaptor(PromotePass()));
 
-  // Remove any dead arguments exposed by cleanups and constand folding
+  // Remove any dead arguments exposed by cleanups and constant folding
   // globals.
   MPM.addPass(DeadArgumentEliminationPass());
 

diff  --git a/llvm/lib/Transforms/Scalar/LowerConstantIntrinsics.cpp b/llvm/lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
index 21c6c32e8e02..1dafa17e5c75 100644
--- a/llvm/lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
@@ -145,7 +145,7 @@ namespace {
 /// Legacy pass for lowering is.constant intrinsics out of the IR.
 ///
 /// When this pass is run over a function it converts is.constant intrinsics
-/// into 'true' or 'false'. This is completements the normal constand folding
+/// into 'true' or 'false'. This complements the normal constant folding
 /// to 'true' as part of Instruction Simplify passes.
 class LowerConstantIntrinsics : public FunctionPass {
 public:

diff  --git a/llvm/test/CodeGen/X86/2010-01-11-ExtraPHIArg.ll b/llvm/test/CodeGen/X86/2010-01-11-ExtraPHIArg.ll
index db98eef30e1e..06fdd8c5c190 100644
--- a/llvm/test/CodeGen/X86/2010-01-11-ExtraPHIArg.ll
+++ b/llvm/test/CodeGen/X86/2010-01-11-ExtraPHIArg.ll
@@ -1,6 +1,6 @@
 ; RUN: llc -verify-machineinstrs < %s
 ;
-; The lowering of a switch combined with constand folding would leave spurious extra arguments on a PHI instruction.
+; The lowering of a switch combined with constant folding would leave spurious extra arguments on a PHI instruction.
 ;
 target triple = "x86_64-apple-darwin10"
 


        


More information about the llvm-commits mailing list